Sub topic 1
What an approval process is and when to use one
Prerequisites
This chapter assumes you already know the following:
- Basic Salesforce navigation and how to find settings in Setup.
- Objects, fields, and records, including the difference between standard and custom objects.
- Users, profiles, roles, and queues.
- Validation rules and formula fields at a basic level.
- For the later Apex chapters only: basic Apex and SOQL. This chapter does not require them.
What an approval process is
An approval process is a Salesforce automation that routes a record to one or more people who must approve or reject it. It defines which records enter the process, who reviews them, in what order, and what happens after each decision.
A typical example is a discount request. A sales rep sets a discount on an opportunity. If the discount is above 20%, the opportunity goes to the rep's manager. If the discount is above 40%, it then goes to a finance approver. The record is locked while it waits, and the process updates fields and sends emails based on the outcome.
An approval process gives you four things that other automation tools do not provide together:
- Routing to people. The process sends the request to named users, queues, or users related to the record, such as the record owner's manager.
- A human decision. The process waits for a person to respond. It does not decide by itself.
- Record locking. While the request is pending, the record is locked against edits by most users, so the data under review cannot change.
- A built-in history. Each submission, step, approver, and comment is stored and can be queried or reported on.
How a request moves through the process
Every approval process follows the same lifecycle. A record is submitted, it waits at one or more steps, and it ends as approved, rejected, or recalled.
The states in the diagram match the statuses you will see on a ProcessInstance record, which a later chapter covers. The key points are these:
- A record only enters the process if it meets the entry criteria and the submitter is allowed to submit it.
- While the status is Pending, the record is locked, and the process waits for an approver to act on a work item.
- A final approval or a final rejection ends that run of the process. A recall also ends it, and the record can be submitted again later.
What the process is made of
You build an approval process from a small set of parts. Later chapters cover each in detail, so this list is only an orientation.
| Part | What it controls |
|---|---|
| Entry criteria | Which records may be submitted, based on field values or a formula |
| Initial submitters | Who may submit the record, such as the owner or certain roles |
| Approval steps | The ordered stages of review, each with optional step criteria |
| Approvers | Who acts at each step: users, queues, related users, or delegated approvers |
| Actions | What happens on initial submission, approval, rejection, and recall |
| Record locking | Whether the record is locked while pending |
Each process belongs to one object. If you need the same kind of approval on two objects, you build two processes.
When to use an approval process
Use an approval process when the business rule is "a person must say yes before this record can move forward," and you need the system to enforce and record that decision.
Good fits include:
- Discount, pricing, or contract approvals on opportunities, quotes, or custom objects.
- Expense, purchase, or time-off requests.
- Publishing or release sign-off, where a reviewer must approve content before it is final.
- Any case where an auditor may later ask who approved a record, when, and with what comment.
An approval process is a poor fit when no person needs to decide. A rule that always applies, such as "set Status to Closed when the amount is paid," belongs in a Flow or another automation tool. A rule that only blocks bad data belongs in a validation rule.
Approval processes compared with other tools
The choice usually comes down to whether a human decision is part of the logic.
| Need | Better tool | Reason |
|---|---|---|
| A person must approve or reject, with history and locking | Approval process | Routing, locking, and history are built in |
| Block a save when data is invalid | Validation rule | It runs instantly and needs no reviewer |
| Update fields or create records automatically when conditions are met | Record-triggered Flow | No human decision is needed |
| Collect input from a user in a guided screen | Screen Flow | It is built for interaction, not for sign-off |
| Complex branching, parallel reviewers, or custom approval screens | Flow Orchestration or a custom design | Approval processes have a fixed structure |
Approval processes and Flows can work together. A Flow can submit a record to an approval process, and an approval process can call a Flow as an action. You do not have to pick only one.
Why not just use a checkbox?
A common shortcut is a custom field such as Approved__c that a manager ticks. This looks simpler, but it has real gaps:
- Nothing stops the submitter from ticking it, unless you also build field-level security or validation rules.
- Nothing locks the record while it is under review.
- Nothing records who approved it, when, or why, unless you add that yourself.
- Nothing notifies the approver, so you have to build that too.
An approval process covers all of these without custom code.
Gotchas to know early
Several behaviors surprise new builders. Each is covered fully in a later chapter, and noting them now saves debugging time.
- Locked means locked for most users. Administrators and the current approver can still edit a pending record, depending on settings. A user who sees an "unable to edit" error is usually looking at a record in a pending approval.
- Entry criteria are checked at submission. If the record does not meet them, the submit action fails or the Submit for Approval button does not appear. Changing a field later does not remove an already pending record from the process.
- Only one pending approval per record at a time. A record cannot be in two pending approvals at once, even if it matches the criteria of two processes.
- Process order matters. If several processes on an object could apply, Salesforce evaluates them in a set order, and the record enters the first one it qualifies for.
- Approval processes are not triggers. Submitting for approval is an explicit act, either by a user or by code. Meeting the entry criteria does not submit a record automatically.
Seeing it in a small example
Suppose a custom object Purchase_Request__c needs manager sign-off for any request over 1,000. The design on paper looks like this:
- Object: Purchase Request.
- Entry criteria:
Amount__c > 1000. - Initial submitter: the record owner.
- Step 1: route to the owner's manager.
- On final approval: update
Status__cto Approved and email the requester. - On final rejection: update
Status__cto Rejected and email the requester. - Locking: lock the record while pending.
Even before you open Setup, this outline lets you check the design. Every part answers one question: who, when, what next, and what changes. The chapters that follow turn each line into a configuration.
Where this fits in the tutorial
This chapter sets the scope. The next chapters take the parts one by one: the building blocks, entry criteria, steps, approvers, actions, and locking. After that, the tutorial covers how users submit and respond, how the data is stored, how to work with approvals in Apex, how to read history, and how to test and troubleshoot.
Exercise
A sales operations team wants any opportunity with a discount above 25% to be reviewed by a regional director, who can approve or reject it. The team also needs a record of who approved each opportunity and when, and wants edits blocked while the review is pending. Which tool fits best, and which three built-in features of that tool meet these needs?
Show answer
An approval process fits best. Its routing sends the opportunity to the regional director. Record locking blocks edits while the request is pending. Approval history (ProcessInstance and its steps) records who acted, when, and with what comment. A validation rule or a record-triggered Flow cannot wait for a human decision on its own.
Exercise
A developer proposes adding a checkbox field Manager_Approved__c that managers tick instead of building an approval process. Give two things the checkbox does not do that an approval process does.
Show answer
Any two of these are correct. The checkbox does not lock the record while under review. It does not notify the approver. It does not record who approved and when, or capture comments. It does not stop the submitter from ticking it without extra security work.
Exercise
A record meets the entry criteria of an approval process, but nobody has submitted it. Does it enter the process? Explain.
Show answer
No. Approval processes are not triggers. A user or code must submit the record explicitly, and the entry criteria are checked at that moment. Meeting the criteria alone does not start the process.