Skip to main content

Salesforce

Multi-Step Approval Process in Salesforce using Standard Setup Wizard.

Smiling Male Programmer Explains A Coding Technique To A New Female Colleague While Sitting At A Desk In The Office

The approval process in Salesforce is a very important topic and it plays a very important role for the approval of records before it comes to the actual processing. In this blog, we are going to learn the approval process very better with the help of real-time scenarios. So, let’s get started.

This is the Part 3 of the Approval Process Series.

Prerequisites: 

If you’ve not gone through the previous part, Part 2 – A Beginner’s Guide to Building Approval Processes in Salesforce of this series, then go through this also. As we’ve taken the reference of the approval process example is solved in it.

Also, you can create an approval process of your own and follow the below scenarios to learn more.

Now, let’s go through some Real Time Scenarios: –

Scenario 1: – Can the User Edit the Submitted Approval Request?

No. Once an approval request is submitted, the user cannot edit it. But Salesforce gives you another way to deal with it. You can “Recall” the submitted approval process and edit it then.

Here are the steps to Recall =>

  1. Navigate to the approval process, click Edit, and then select “Initial Submitters” from the drop-down menu.
  2. Check the box “Allow submitters to recall the approval requests”.
  3. Click Save.
  4. Create a Leave Request record and submit it for approval. Make sure you won’t be able to edit it.
  5. Now, go to the related list. In the approval history-related list, click Recall.
  6. Write down any comment/reason for recalling. (optional)
  7. Click Recall.
    Image8
    Image9
  8. The request has been successfully recalled. Make the necessary modifications now.
  9. To submit the request, click Submit for approval.

Scenario 2: Who will Approve the Request if the Approver is not Available?

In this case, the approver’s delegate will approve the request. Here, in the absence of Isabella, Senior Manager Robert will approve the request.

Here is the way to set up a delegate to approve requests =>

  1. Go to the User and click Edit in front of Manager Isabella.
  2. Scroll all the way down to Approver Setting and enter “Robert” into the delegate approver box and click the search icon.
  3. Click on “Senior Manager Robert”. Click Save.

Image10

 

  1. Now, go to the approval process and, inside the Approval Process related list, click Edit to your recently created Approval Step.
  2. Go to Step 3 – Select Assigned Approver of it. Here check the box that says, “The approver’s delegate may also approve this request”.
  3. Click Save.
  4. Create a new record for Leave Request and submit it for approval.
  5. Log in as “Senior Manager Robert” in order to approve the request.

Note that, here you won’t be able to see the request in a notification or anywhere else. You must navigate to Leave Request records from App Launcher.

  1. You’ll see the Approve/Reject Buttons there.
    Image11
  2. Click Approve.
  3. Enter your comment if any and again click Approve.
    Image12
    In this way, an approver’s delegate can approve the requests.

 

Scenario 3: – If an Employee Requests more Leave, He must Obtain Approval from Both Approvers. How do I Implement this in the Approval Process?

Let’s consider, our Employee Jack is asking for more than 10 or 15 days of leaves then he will need approval from Manager Isabella as well as from Senior Manager Robert.

If the number of leaves is greater than 1, the request will be assigned only to Manager Isabella and if the number of leaves is greater than 10, it will be assigned to both Manager Isabella as well as Senior Manager Robert.

Note: Remove the delegate user from User: Manager Isabella.

To create such a scenario of both approvals, let’s begin with Multistep Approval Process.

A. Approval Step 1 – When Leave is Greater than 1.

  1. Create a new Approval Process. (Alternatively, you may just edit the approval steps in the ongoing process.)
  2. Go to the Approval Steps related list and click New Approval Step.
  3. Enter Name and Description. Click Next.
  4. Click on the second radio button and select “formula evaluates to true” from the first picklist and from ‘else picklist’ select “approve record”.
  5. Create the formula as shown below and check the syntax as well when done.
    Image14
  6. Click Next. Here you can automatically assign to an approver. Select User from the picklist and from the second box, click on the search icon and select Manager Isabella.
  7. Click Save.

B. Approval Step 2 – When Leave is Greater than 10.

  1. From the Approval Steps related list, click New Approval Step, enter Name and Description and click Next.
  2. Create the formula as shown below and check the syntax as well when done.
    Image15
  3. Click Next. Here you can automatically assign to an approver. Select User from the picklist and from the second box, click on the search icon and select Senior Manager Robert.
  4. Click Save.

In this Way, We’ve Created Approval Steps.

Image16

Create a new leave request and check that :-

  • When the number of leaves will greater than 1 and less than 10, it will be assigned and approved by Manager Isabella.
  • When leaves will greater than 10, it won’t be approved until and unless both managers approves it.
  • And, when the number of leave is only 1, it will be directly approved without anyone’s approval.

Scenario 4: If Leaves are Less Than or Equal to 5, Assign it to Manager Isabella only. And, if Leaves are Greater than 5, Assign it to Senior Manager Robert only.

A. Approval Step – When Leaves are Less than or Equal to 5.

  1. Clone the approval process and give the name and unique name. Or you can simply edit the approval steps also.
  2. In the approval steps related list, click Edit.
  3. Enter the name and unique name and click next.
  4. Here, to the else picklist, select “go to next step”. It plays a very important role in the approval process. If the record won’t satisfy the formula condition, it will go to the next step and will be assigned to it.
  5. Create the formula as shown below and check the syntax as well when done. Click Next.
    Image17
  6. Let the user Manager Isabella as it is and click Save.

B. Approval Step – When Leaves are Greater than 5.

  1. Click edit on the second approval step, enter name and unique name, and click Next.
  2. Create the formula as shown below and check the syntax as well when done. Click Next.
    Image18
  3. Let the user Manager Isabella as it is and click Save.

In this way, we’ve created approval steps for particular assigning and approval of leave requests.
Image19

Create a new leave request and check. If the request will satisfy the first condition, it will only be assigned to Manager Isabella. If it satisfies others, it will be assigned to Senior Manager Robert only.

 

Scenario 5:  If Leave is Applied, the Employee Wants it to Go for Approval by a Team. If One of them Approves, it Should get Approved.

  1. Clone the approval process and give the name and unique name. Or you can simply edit the approval steps
  2. In the approval steps related list, click Edit.
  3. Enter the name and unique name and click Save.
  4. In the approval steps, keep only approval step 1 and delete others. (In case you cloned the previous process)
  5. In approval step number 1, click
  6. Click Next and Next. In Step 3 – Select Assigned Approver, under the User drop-down menu click Add Row to add multiple users/new user.
  7. Click on the search icon and select “Senior Manager Robert” as a user as shown below.
    Image20
  8. Below are the conditions when multiple users are selected.
    A. In the case of the first option, when the request is submitted, it will go to all the selected users for approval. If any one of them approve or reject the request, then that record is marked as approved or rejected.
    B. In the case of the second option, when the request is submitted, it will go to all the selected users for approval. Here it should be approved/rejected by all users. Then only it will be marked as approved/rejected.
    Image21
  9. Here, click the second radio button for the “Unanimous” user. Click Save.
    Image22
    The approval steps will be as shown below.
  10. Click on “Activate” to activate the approval process.

Now Create a new Leave record and Submit it for Approval.

  1. Login as Manager Isabella. Check the approval request in the notification icon.
  2. Click on the record and click on “Approve” as shown below.
    Image23
  3. Even if Manager Isabella approved it, the record’s status is still in a pending state. Because while creating approval steps we selected the “Unanimous” user. It is shown below:
    Image24
  4. Login as Senior Manager Robert. Check the approval request in the notification icon.
  5. Click on the record and click on “Approve”.
  6. And now the record’s status will be finally “Approved” as shown below.
    Image25
  7. In the same way, if you select the first option for the user while creating the approval steps, the record will be approved by the approval of any one of the users.Image26

In this way, we’ve seen multiple scenarios of creating a “Multistep Approval process” using the “Standard Setup wizard”.

 

Conclusion:

In conclusion, implementing a multistep approval process in Salesforce brings numerous benefits to organizations, including streamlined workflows, improved accuracy, increased transparency, and enhanced decision-making. By leveraging Salesforce’s features and customization options, businesses can optimize their approval processes and drive greater efficiency in sales operations.

 

Related Articles:

  1. Introduction to the Approval Process in Salesforce 
  2. Streamline Your Sales Process: A Beginner’s Guide to Building Approval Processes in Salesforce

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Abhinav Masane

Abhinav Masane is an Associate Technical Consultant at Perficient based in Nagpur. He is a Salesforce Certified Associate and Developer. Abhinav is always keen to learn and explore new technologies.

More from this Author

Follow Us