function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kiran punurukiran punuru 

approval process id related to a opportunity

Hi All,

How to get the approval process id related to a particular opportunity.

Thanks,
Kiran
Best Answer chosen by kiran punuru
Muba SFDCMuba SFDC
Hi Kiran,
Try this...
SELECT Id,ProcessDefinitionId,TargetObjectId,TargetObject.name FROM ProcessInstance where TargetObjectId in (select id from opportunity)

Mark this as solved if its solution for your question.

Thanks
Mubarak.



 

All Answers

Muba SFDCMuba SFDC
Hi Kiran,
Try this...
SELECT Id,ProcessDefinitionId,TargetObjectId,TargetObject.name FROM ProcessInstance where TargetObjectId in (select id from opportunity)

Mark this as solved if its solution for your question.

Thanks
Mubarak.



 
This was selected as the best answer
kiran punurukiran punuru
Many Thanks Mubarak.