Newer Version Available
ProcessInstanceHistory
Supported Calls
describeSObjects()
Special Access Rules
Only portal and communities users with the Customer Community Plus and Partner Community licenses can access this object.
Fields
| Field | Details |
|---|---|
| ActorId |
|
| Comments |
|
| ElapsedTimeInDays |
|
| ElapsedTimeInHours |
|
| ElapsedTimeInMinutes |
|
| IsPending |
|
| OriginalActorId |
|
| ProcessInstanceId |
|
| ProcessNodeId |
|
| RemindersSent |
|
| StepStatus |
|
| TargetObjectId |
|
Usage
This object helps you replicate the related list functionality of the Salesforce user interface for approval processes. Use ProcessInstanceHistory for a unified read-only view of the ProcessInstanceStep and ProcessInstanceWorkitem objects. You can’t queryProcessInstanceHistory. Instead, you can query ProcessInstanceHistory by including it in a nested query on the parent ProcessInstance object. For example, the following SOQL query returns all the ProcessInstanceHistory records related to individual ProcessInstance records. The nested query references StepsAndWorkitems, which is the child relationshipName for ProcessInstanceHistory in the ProcessInstance object.
1SELECT Id, (SELECT Id, StepStatus, Comments FROM StepsAndWorkitems)
2FROM ProcessInstanceThis object respects field-level security on the parent object.