You need to sign in to do that
Don't have an account?
Lukesh Karmore
How to query Approval Process Name (Unique Name ) which we add in step 1
How to query Approval Process Name.
SELECT Id,TargetObjectid, Status,a FROM ProcessInstance
In below image I need to query this label Approval Request Submitted ,is there any way .
SELECT Id,TargetObjectid, Status,a FROM ProcessInstance
In below image I need to query this label Approval Request Submitted ,is there any way .
We have an object called Process Definition where it will store all the details about the apporval process. You need to take the id from that Process Definition Object related to this and Query the ProcessInstance based on that Id.
Sample one:
The processDefinitionid in the below query is the id which we got from above.
If this solution helps, Please mark it as best answer.
Thanks,