Salesforce Fact #114 | Approval from flow

Suppose you have a requirement to trigger an approval process from the flow and the approver should be the submitter's manager. 

To implement this, we have to take one text collection variable and add the current user's manager id in it. Also we have to make sure the select approver option is set as 'Let the submitter choose the approver manually' in the approval process.

Note: the hardcoded record Id is only for demonstration purpose and should be avoided as it is not a good practice.

Attached are the screenshots.





 

Comments

Post a Comment

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow