function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Amar_sfdcAmar_sfdc 

Aproval Process - Sending record for Approval to the next step on rejection by the previous Approver

Hi,

 

We have the following requirement:

 

There are 4 different Approvers say A,B,C and D and there are 4 different conditions for each Approver, i.e. if first condition matches, A will be the Approver, if second condition matches, B will be the Approver etc..

On click of "Submit for Approval", we need to send the record for Approval to A,B,C simultaneously if first, second and third conditions are matched. i.e. If first condition is matched, the record shud be send to A for approval, if first and second conditions match, the record shud be send to A and B for approval simultaneously, if first, second and third conditions match, the record shud be send to A,B and C for approval simultaneously.

The condition for fourth Approver i.e. D is: If(A is Approved OR first condition is not matched) AND If(B is Approved OR second condition is not matched) AND (C is Approved OR third condition is not matched).

 

Please let us know how to implement the above functionality. Also is it possible to send a record for approval to different approvers with different conditions simultaneously? If not possible, is there is any alternative?

 

Thanks in advance.

 

 

 

 

Salesforce team @JeganeeSalesforce team @Jeganee

Hi Amar,

 

While configuring the approval process chose the option "Let the submitter chose the approver manually"..........and route the approval process dynamically by checking the conditions in Apex.

 

if needed you can have a look @ http://shivasoft.in/blog/salesforce/dynamic-approval-process-based-on-the-apex-and-trigger/

to see how to code approval process in apex.

 

 

Salesforce team @ Jeganee Technologies.