Skip to main content

Posts

Showing posts with the label Approval

Dynamic Approval Process on Salesforce

Ever come across the need of a large approval process where you do not know who the approver of the next stage will be? We all do don't we? In a recent project requirement, I had to work on a big approval process. My basic requirement was: 1. One approval process for child object 2. Once child is approved, it should trigger the master object approval process Both the approval process had around 5 steps and the approvers where determined by the role hierarchy and the region of the submitter. Yikes is it? Pre-requisites: For this recipe, you need 1. Basic knowledge of APEX and trigger 2. Basic knowledge of Approval process 3. Aspirin (just in case you miss a step and have to debug it!!!) So lets begin with the Child Object Dynamic Approval process. Steps for Child Object Dynamic Process 1. Create two fields on the child object. These fields will not be shown on Page Layout.        i) Approval_step__c: Text field to determin...