Batch.updateRunType Method
Updates the RunType field on the Batch table depending on whether the task runs impersonated or not.
Syntax
public void updateRunType()
Run On
Called
Remarks
If the Batchable.runsImpersonated method returns true, the RunType field is set to BatchRunType::Server; otherwise, it is set to BatchRunType::Client.