No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
ProcessInstance
Represents an instance of a single, end-to-end approval process.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
| Field | Details |
|---|---|
| IsDeleted |
|
| Status |
|
| TargetObjectId |
|
Usage
Use this object to query or retrieve an approval process.
The following SOQL query returns details for all the ProcessInstanceStep records related to individual ProcessInstance records. The nested query references Steps, which is the child relationshipName for ProcessInstanceStep in the ProcessInstance object.
1SELECT Id, (SELECT Id, StepStatus, Comments FROM Steps)
2FROM ProcessInstanceThe following SOQL query returns details for all the ProcessInstanceWorkitem records related to individual ProcessInstance records. The nested query references Workitems, which is the child relationshipName for ProcessInstanceWorkitem in the ProcessInstance object.
1SELECT Id, (SELECT Id, ActorId, ProcessInstanceId FROM Workitems)
2FROM ProcessInstanceProcessInstanceHistory can help provide a unified read-only view of the ProcessInstanceStep and ProcessInstanceWorkitem objects.