Skip to main content
Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.

Dive Into Approval Workflows

Learning Objectives

After completing this unit, you’ll be able to:

  • List the two key elements of Business Rules Engine.
  • Create an entitlement process.
  • Set up milestones to track application approval time targets.

Use Business Rules Engine to Automate Decisions

Business Rules Engine comprises a suite of services, components, and objects that perform calculations and automate complex policy-based rules. Tishon uses it to build, test, and execute rules with a drag-and-drop, no-code interface. With Business Rules Engine, Tishon can quickly and easily determine whether applicants qualify for unemployment insurance, small business loans, business licenses, and other programs and services. Business Rules Engine consists of two key elements: Decision Matrices and Expression Sets. 

Decision matrices are a type of lookup table, with specified input and output columns. Use the matrices to implement complex rules in a systematic, readable way. It's easy to change conditions in a decision matrix, which helps you keep pace with ever-changing rules and policies. 

In this example, Tishon uses the number of chairs the applicant plans to put at her salon as the input value and the fee they have to pay per chair as the output value. 

The Input Data and Output Data columns in a decision matrix

Expression sets perform the calculations in Business Rules Engine. They have a series of steps, connected in a logical flow. Each step is built from variables, constants, and decision matrices. An expression set calls a decision matrix, finds the table row that matches the input value, and returns that row’s output value. 

For her expression set, Tishon adds a formula to her CMNoOfChairs decision matrix to compute the chair fee the applicant has to pay for her salon establishment license. 

Use Expression Sets to compute Chair Fee

You can add business rules to an OmniScript, Flow, or custom workflow and use them in the approval processes. To learn more, see the Trailhead module Business Rules Engine

Create an Entitlement Process

So far, you’ve seen how to create an application form to use in a public portal. You also learned about Business Rules Engine. Now, let’s join Tishon as she sets up an approval process for business license applications. 

Note

This module uses business license applications as an example to show how to set up an approval process. However, you can create an approval workflow to approve all kinds of applications with Public Sector Solutions. 

The first thing Tishon does is to create the timeline for all the steps, including the milestones required to approve an application. She does this by defining an Entitlement Process with application approval time targets. 

It’s time to follow along as Tishon defines an Entitlement Process.

  1. From Setup, in the Quick Find box, search for and select Entitlement Processes.
  2. Click New Entitlement Process.
    When a constituent submits an application online, Public Sector Solutions creates a Salesforce case record for the application. So you need to base the entitlement process on the Case object.
  3. From the Entitlement Process Type menu, select Case, and then click Next.
  4. For Entitlement Process Name, enter Business License Application,and for Description, enter Entitlement process for business license applications.
  5. Select Active.
  6. Specify the Advanced Options.
    • For Case enter the process, select Based on case created date.
    • For Case exits the process, select Based on custom criteria and then criteria are met.
    • For Field, select Case: Closed, for Operator, select equals, and for Value, enter True.
  1. Save your work.

Screen capture showing Entitlement process details

Next, Tishon creates milestones for the entitlement process. 

Create Approval Timelines with Milestones

Milestones represent required, time-dependent steps in an approval process, such as first response or case resolution times. Add milestones to an entitlement process to help ensure that reviewers process submitted applications correctly and on time. An entitlement process can have up to 10 milestones. You can set up a milestone to occur once in an entitlement process or to recur until the entitlement process completes.

Here’s how Tishon creates the milestones for her application approval process.

  1. From Setup, in the Quick Find box, search for and select Milestones.
  2. Click New Milestone.
  3. For Name, enter Intake Application Review, and for Description enter Time taken by the first reviewer to verify submitted information.
  4. For Recurrence Type, select No Recurrence.
  5. Save your work, or save and create new milestones if you need them.

Tishon has now created milestones to track application approval time targets.

Next, she adds the milestones to her entitlement process

  1. From Setup, in the Quick Find box, search for and select Entitlement Processes.
  2. Select Business License Application.
  3. In the Milestone Related list, click New.
  4. For Milestone Name, select Intake Application Review.
  5. For Time Trigger (Minutes), enter 1440 to require that the milestone be completed in one day.
  6. For Start Time, select Entitlement Process.
  7. For Order, specify the order in which Salesforce processes multiple milestones. For example,1,2,3.If your process has only one milestone, enter 1.
  8. For Criteria, define when to apply the milestone to a record. In this case, select Criteria are met, and then add this criteria:
    • For Field, select Case: Type.
    • For Operator, select equals.
    • For Value, enter Business.
  1. Save your changes.

You can also add the Milestones Lightning web component to a Case page layout so that reviewers see a real-time countdown of time remaining to approve the application. 

Interesting, right? Well, it doesn’t stop here. Next, you learn how Tishon sets up a path and creates a queue to streamline her application approvals.

Resources

Salesforce 도움말에서 Trailhead 피드백을 공유하세요.

Trailhead에 관한 여러분의 의견에 귀 기울이겠습니다. 이제 Salesforce 도움말 사이트에서 언제든지 새로운 피드백 양식을 작성할 수 있습니다.

자세히 알아보기 의견 공유하기