No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
ProcessInstanceHistory
This read-only object shows all steps and pending approval requests associated with an approval process (ProcessInstance).
Supported Calls
describeSObjects()
Fields
| Field | Details |
|---|---|
| ActorId |
|
| Comments |
|
| IsDeleted |
|
| IsPending |
|
| OriginalActorId |
|
| ProcessInstanceId |
|
| RemindersSent |
|
| StepStatus |
|
| TargetObjectId |
|
Usage
This object helps you replicate the related list functionality of the Salesforce.com 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.