+ 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.