You need to sign in to do that
Don't have an account?
Fabio Palladino
Get Initial submitter of an Approval through SOQL
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
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
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.
All Answers
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.
It appear like an "Hidden" field.
Thanks a lot
Fabio