Sub topic 4
Defining approval steps
This chapter assumes you know how to navigate Setup, understand objects and records, and can write basic formulas. It covers how steps work inside an approval process and how to configure them. Approvers are covered in the next chapter.
What a step is
An approval step is one stage of an approval process. Each step has three parts:
- A name and a unique name used by the system.
- Step criteria that decide whether a record enters this step.
- A person or group who approves, plus a rule for what happens if the record does not qualify.
Steps run in order. A record moves to step 2 only after step 1 is approved. A rejection ends the process at that point, unless you configure the step differently.
Step criteria
When you create a step, you choose one of three options for which records enter it:
| Option | Behavior |
|---|---|
| All records should enter this step | No filter. Every record that reaches the step needs approval. |
| Enter this step if criteria are met | Records matching a filter or formula enter the step. Others do not. |
| Enter this step if a formula evaluates to true | The same idea, written as a formula. |
The first step is special. If you use criteria on step 1 and a record fails them, you must choose what happens: approve the record, reject it, or continue to the next step if one exists. For later steps, a record that fails criteria has the same choices, except that continuing moves it to the next step.
Worked example: a discount approval
Suppose Opportunities need approval when a discount is large. The process has these rules:
- Step 1, "Manager Review": enter if
Discount_Percent__c > 10. The sales manager approves. - Step 2, "Finance Review": enter if
Discount_Percent__c > 25. The finance queue approves.
Here is what each case does:
- A 5% discount fails the step 1 criteria. The process is set to approve the record automatically. It completes with no approver involved.
- A 15% discount enters step 1. After the manager approves, it fails step 2 criteria, so the process ends as approved.
- A 30% discount enters both steps in order.
If a step is rejected
Each step lets you choose what a rejection does:
- Final rejection. The record is rejected and the process ends. This is the default.
- Go back to the previous step. This option is not available on step 1. The previous approver reviews again.
Pick final rejection unless you need a review loop. Loops are harder to troubleshoot because the same record can have many steps in its history.
Step order and editing
You can reorder steps from the process detail page, using the Reorder option. Be careful with active processes. Salesforce does not let you edit an active process. You must deactivate it first. Records already pending keep the old definition until they finish, so plan changes around in-flight requests.
Common errors
- Overlapping criteria. If step 1 has a looser filter than you meant, records enter it unnecessarily. Test boundary values such as exactly 10 and exactly 25.
- Wrong comparison. Using
>=instead of>changes which records enter a step. Write the intent down before building the filter. - Blank fields. A formula that uses a blank number field may evaluate unexpectedly. Use
ISBLANKorNULLVALUEwhere a field might be empty. - Step skipped by design. If a record fails step criteria and your setting is "approve", no approver is ever asked. Confirm this is what you want.
Exercise
A process has step 1 with criteria "Amount > 50000" and step 2 with criteria "Amount > 100000". An opportunity of 75,000 is submitted. If the step 1 option for records that fail the criteria is "approve", which steps involve an approver, and what is the outcome after step 1 is approved?
Show answer
Only step 1 involves an approver, because 75,000 is over 50,000. After step 1 is approved, the record fails the step 2 criteria (75,000 is not over 100,000), so the process ends with final approval and no step 2 approver is asked.