Skip to main content
Hi all,

is it possible to get the initial Approval Process submitter for a specific object through apex code ?

I searched around but I could not find a SOQL statement for this purpose.

Thanks in advance

Fabio

 
4 respostas
  1. 4 de ago. de 2016, 21:36
    Yes, you can do something like this:

    SELECT TargetObjectId, SubmittedById FROM ProcessInstance WHERE TargetObjectId = '<some SFDC record ID>'

    The TargetObjectId is the record ID that is being submitted for approval.  The SubmittedById should be the ID of the User that submitted the approval request.
0/9000