Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ProcessResult
The process() call returns a ProcessResult object, which has the following properties, depending on the type of call (submit for approval or process object already submitted to for approval):
| Name | Type | Description |
|---|---|---|
| actorIds | ID | IDs of the users who are currently assigned to this approval step. |
| entityId | ID | The object being processed. |
| errors | Error[] | The set of errors returned if the request failed. |
| instanceId | ID | The ID of the ProcessInstance associated with the object submitted for processing. |
| instanceStatus | string | The status of the current process instance (not an individual object but the entire process instance). The valid values are “Approved,” “Rejected,” “Removed,” or “Pending.” |
| newWorkItemIds | ID[] | Case-insensitive IDs that point to ProcessInstanceWorkitem items (the set of pending approval requests). |
| success | boolean | true if processing or approval completed successfully. |