Dynamic Approval process in Salesforce

Dyanamic Appoval basically to allocate the Approver dynamically. Dynamic approval process is used to route approval requests to users listed in lookup fields on the record requiring approval. In this, approver names are defined dynamically from an object.


1. Create a lookup field to user in your object. Let the name be Next_Approver__c.

2. Write a logic to assign the approval to the user mentioned in that field using setNextApproverIds().

Check the below link for sample code for the step 2.



No comments:

Post a Comment

Sharing is Caring!!! Share this with your friends!!!

submit to reddit