Automatically Launch a Salesforce Approval Processes (2024)

inAdmins

Share this article...

Supercharge your business processes by combining your Salesforce approval processes with the power of Salesforce Flow. With Process Builder and workflow rules being retired slowly but surely, Flow remains the Salesforce automation tool which leverages point-and-click functionality as a reliable alternative to writing custom Apex code in such scenarios.

Approval processes on the other hand have been around for a longer time, and while they have a very specific functionality to automate, respectively asking users to approve records, they are very user friendly and fast to configure as needed.

This post will cover a specific business need: launching an approval process automatically, without manual intervention from an user. In addition to this, we will showcase every step of the way, including the user’s experience when the automation is triggered.

Getting Started With Flow

If this is the first time you will be building a Salesforce flow, make sure to check out our guides below which cover all the basics for you to get started (and more!), as well as the dedicated Trailhead resources.

  • The Complete Guide to Salesforce Flow
  • A-Z Guide to the Salesforce Flow Builder
  • Migrate to Salesforce Flow Course
  • Ultimate Salesforce Flow Foundation Course
  • Ultimate Guide to Building Salesforce Approval Processes

Why Would You Need This Solution?

Overall, similar to most automations, the reasons behind this solution include:

  • Removing the need to manually click the Submit for Approval button.
  • Ensuring the assignment of records which should be reviewed, approved or rejected by an assignee is happening as soon as criteria is met.
  • Making sure that updating data as part of the automation following the outcome of the review is standard practice.

Let’s get to building!

Part 1: The Approval Process

Since I’m working in a new developer edition, there wasn’t any existing process on the opportunity object, so the first step is to go through the creation of the approval process from scratch.

Before we proceed, note that I will only briefly cover some of the steps when it comes to creating an approval process, and it will be a very simple one to exemplify the automation. For a thoroughly explained end-to-end scenario, make sure to check out our Ultimate Guide to Building Salesforce Approval Processes.

After navigating through Setup and onto the Approval Process page, choose your object to be an opportunity, and let’s proceed with the creation of the new process.

You will have to define a name and set the entry criteria, editability properties, and approval page layout. In this particular org and example, all opportunities are created in Prospecting when opportunity owners should enter a placeholder amount before progressing to Qualification.

For the approval step, feel free to use whichever example makes sense for you – be it one or multiple steps.

Once this is done, we can add the actions the process should take (eg. Email Alerts, Field Updates, etc.):

  • Automatically Launch a Salesforce Approval Processes (1)
  • Automatically Launch a Salesforce Approval Processes (2)
  • Automatically Launch a Salesforce Approval Processes (3)

Once you’re happy with the approval process and steps, make sure to activate the approval process. Keep in mind that once it is activated, you will be able to change a few attributes in the approval steps, but you will no longer be able to delete them.

Automatically Launch a Salesforce Approval Processes (4)

At this point (or at a later time), you can add actions such as Field Updates or Email Alerts, for either the Submission, Approval, Rejection or Recall. Also, each approval step can have its own actions.

Automatically Launch a Salesforce Approval Processes (5)
Automatically Launch a Salesforce Approval Processes (6)

Keep in mind that Salesforce allows us to create multiple approval processes on the same object. The recommendation they give is to always use exclusionary entry criteria so that they do not interfere with each other according to their order of execution. Basically, this means that you should not reuse the same entry criteria for more than one approval process.

In addition, each process can be reordered according to our needs, so you can always return to this page and change their process order numbers.

Automatically Launch a Salesforce Approval Processes (7)

READ MORE: Ultimate Guide to Building Salesforce Approval Processes

Part 2: The Record-Triggered Flow

Note: The tutorials we are showcasing are built in developer edition orgs with limited data and only a few custom automations. Ensure that you evaluate your existing processes properly before building new ones, including both declarative automations and custom Apex. For Flow specifically, consider the recommended best practices when it comes to the number of record-triggered flows per object.

READ MORE: How Many Flows Should You Have Per Object?

The flow itself is quite straightforward to build, with a few specific attributes to set for the Submit for Approval action, such as defining the approval process’ name or ID. You can check-out the full list for this core action here.

Automatically Launch a Salesforce Approval Processes (8)

Check out the short video below for the end to end Flow setup.

Note: In my hypothetical use case, opportunities can’t directly be created by users in Qualification or any stage other than Prospecting, hence why the flow only triggers on updates.

The flow below was built in a Spring ’23 developer org, and the visible element description directly on the canvas is one of the new additions available in the new release. Check the hottest Spring ’23 Flow features here.

Now as soon as the amount and stage on an opportunity record are updated to meet the criteria, the record will be submitted for approval!

Part 3: Let Your End Users Know What’s Happening

As I mentioned above already, the entire goal of what we’re doing is to save even more time for our users by removing a step and prevent potential errors such as the Submit for Approval button not being clicked.

One difference between this background automation and the manual process is letting the user know that the record is not pending approval, in case we decide to lock it and they’re wondering why can’t they edit it.

There are a few other options to explore here as always, varying from simple ones such as sending them an email to more complex ones, but I preferred to use the out-of-the-box Rich Text Lightning Component on the opportunity record page to announce that this is happening.

The reason I find this very handy overall is because it’s easy to set-up and filter to make it show up on the page based on criteria and filter logic and of course, and it’s easy to remove if it’s no longer needed.

  • Automatically Launch a Salesforce Approval Processes (9)
  • Automatically Launch a Salesforce Approval Processes (10)

READ MORE: Standard Lightning Components to Implement in Salesforce Now!

Part 4: Don’t Forget to Test

There’s certainly nothing more fun after building a flow (or anything for that matter) than seeing that it works as expected. The Debug button does wonders after the flow is saved and before it’s activated, so that you can make any needed changes before activating the version you’re tweaking in case anything is missing and causing the flow to fail.

Automatically Launch a Salesforce Approval Processes (11)

On top of the Debug button which helps us test the flow itself, now that the flow was activated, I also tested the behavior on the user interface just to make sure that the experience works exactly as expected from an user’s perspective. This was important to test since the changes I’ve made on the record page are independent from the flow.

Sometimes, testing might not go exactly as planned, and one very important aspect for this automation is, of course, to define the approver instead of trying to allow the opportunity owner to select it. Remember, they are not using the button, everything is happening in the background.

Automatically Launch a Salesforce Approval Processes (12)

If this happens, a red error will let you know that this is the case in the UI, and you will also receive an email about the flow failing so you can easily make an update within the approval process or the flow.

Automatically Launch a Salesforce Approval Processes (13)

Summary

After replicating and testing this end to end simple automation, you should feel more comfortable exploring the possibilities of combining both approval processes and Salesforce flows in your own sandbox or developer org. Considering the particular use cases you might want to leverage this approach for – the sky’s the limit!

Automatically Launch a Salesforce Approval Processes (2024)

FAQs

How do I trigger an approval process automatically in Salesforce? ›

Step 1: Create an Approval Process:
  1. Click Setup.
  2. In the Quick Find box, type Approval Processes.
  3. Clicks on the Create New Approval Process | Use Standard Setup Wizard button.
  4. Select the Campaign object for Manage Approval Processes For drop-down.
  5. Now create an approval process, as shown in the following screenshot:
Aug 15, 2022

Can we automate approval process in Salesforce? ›

An approval process is an automated process your agency can use to approve records in Salesforce. An approval process specifies the criteria a record must meet before it can be submitted for approval, the steps necessary for a record to be approved, and who must approve it at each step.

How do I create a dynamic approval process in Salesforce? ›

Guided Practice (We-do):
  1. Create a custom lookup (with User object) field on the object being approved.
  2. Create a custom object that will be used as an approval matrix.
  3. Populate the approval matrix, i.e., create a few records in a custom object.
  4. Create an approval process.
  5. Salesforce Flow Steps:
Jan 2, 2021

How do I schedule an approval process in Salesforce? ›

Create an Approval Process
  1. From Setup, enter Approval in the Quick Find box, and then select Approval Processes.
  2. In Manage Approval Processes For, select Opportunity.
  3. Click Create New Approval Process | Use Jump Start Wizard. ...
  4. Configure the approval process. ...
  5. Save the approval process.

What is the auto approval process? ›

Auto-approval occurs when a consumer is able to successfully complete the online identity verification process without manual review or human intervention.

What is dynamic approval process? ›

Dynamic approvals enable you to create a single step that systematically identifies every potential approver, searches to find out if that approver has enough authority to complete the approval, and creates a visual path for users to view of all necessary approvers in the process.

What are the best practices for approval process in Salesforce? ›

Best Practices for Salesforce Approval Process Flow
  • Define clear approval criteria: it's essential to define clear criteria that accurately reflect your business rules, needs, and processes. ...
  • Customize the approval process flow: Customize the approval process flow to fit your organization's specific needs.
May 16, 2023

What are the limitations of approval process in Salesforce? ›

Approval processes have a limit of 30 steps. An approval process may have up to 25 assigned approvers. There can only be one active approval process per object. You cannot delete an active approval process.

What are the two ways of creating approval process in Salesforce? ›

How to Deploy Approval Process in Salesforce?
  1. Click on Setup => Create => WorkFlow and Approval => Approval Process or go to Quick Find and search Approval Processes. ...
  2. Click on Create New Approval Processes and choose Use Jump Start Wizard.

What is dynamic approval routing? ›

Dynamic Approval Routing is an advanced tool that automatically populates requisition and offer approvers through the use of inclusion and exclusion rules. These rules, based primarily on functional and hierarchical roles, enable customers to enforce processes and simplify the approval process for the initiator.

What is parallel approval process in Salesforce? ›

Parallel Approval means you are sending multiple approvals out in one step of the approval process. Any approver able to approve without need to wait for other approvers to approve. The approver can be specific users, a queue or related user in the record.

How do I create a queue for approval process in Salesforce? ›

Step 1. Decide who is an Approver in your process and set up a Queue
  1. Select Queue from Setup. Step #2. ...
  2. Define Queue Name and Email Address. Step #3. ...
  3. Set Queue Supported Objects. Step #4. ...
  4. Add members to the Queue. Step #5. ...
  5. Find Classic Email Templates from Setup. Step #2. ...
  6. Choose Type of the Email Template. Step #3.
Jul 21, 2023

What are three key components of an approval process Salesforce? ›

Actions In Salesforce Approval Process
  • Initial Submission Actions. Initial submission actions are the actions that occur when a user first submits a record for approval. ...
  • Final Approval Actions. ...
  • Final Rejection Actions. ...
  • Recall Actions.

What is the difference between workflow and approval process in Salesforce? ›

The major differences between workflow rules and approval processes in Salesforce lie not only in the purposes of their use but also in when and how they are triggered.As such, when a user manually presses the “Submit for approval” button on their request, the approval process activates.

How do you call approval process from trigger? ›

Evaluate trigger from approval process
  1. Create a checkbox field to update when its Approved.
  2. Update this checkbox to true in Approval actions.
  3. Compare in trigger and have this in 'IF' Condition whether 'Check_ Box == True'
Mar 28, 2020

How do I call approval process from custom button in Salesforce? ›

  1. Navigate to the Submission object, then go Cog Wheel > Edit Page.
  2. “Update to Dynamic Actions” using link in right-hand panel, then “Migrate” existing actions.
  3. Remove all other Action Buttons, then add the new “Quick Action” called “Submit for Approval”
Aug 8, 2021

How do I enable chatter for approval process in Salesforce? ›

Log into Salesforce, and then follow these steps to enable Chatter Approvals:
  1. Go to Setup.
  2. In the Quick Find menu on the left, use the drop-down arrows to go to Build > Customize > Chatter > Chatter Settings.
  3. Click Edit.
  4. Check Allow Approvals.
  5. Click SaveEnable Feed Tracking for Custom Objects.
  6. Go to Setup.

Top Articles
Latest Posts
Article information

Author: Stevie Stamm

Last Updated:

Views: 6610

Rating: 5 / 5 (60 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Stevie Stamm

Birthday: 1996-06-22

Address: Apt. 419 4200 Sipes Estate, East Delmerview, WY 05617

Phone: +342332224300

Job: Future Advertising Analyst

Hobby: Leather crafting, Puzzles, Leather crafting, scrapbook, Urban exploration, Cabaret, Skateboarding

Introduction: My name is Stevie Stamm, I am a colorful, sparkling, splendid, vast, open, hilarious, tender person who loves writing and wants to share my knowledge and understanding with you.