Sub topic 10
Submitting and Responding to Approval Requests
This chapter covers the run-time side of an approval process. It follows a record from submission through approval, rejection, or recall, as the people involved experience it in the Salesforce UI. It assumes you know the building blocks from earlier chapters: entry criteria, steps, approvers, actions, and record locking. It also assumes you can navigate Setup and use basic Salesforce records. The Apex versions of these actions are in a later chapter.
What happens at run time
An approval process does nothing until a record is submitted. Submitting creates an approval instance for that record. The instance moves through the steps you defined. At each step, Salesforce creates one or more approval requests, one for each approver. Each request stays pending until someone acts on it or the request is removed.
The diagram shows the states of one approval instance.
An approval request is not a task or an email. It is a record that belongs to one approver, and it appears in that person's approval queue.
Submitting a record
A record can be submitted in several ways.
- Submit for Approval button. Add the button to the page layout, or use a Lightning page with the Approval History related list. The button shows only if an active approval process exists for the object.
- Automatic submission. In the process settings you can submit automatically when a record meets the entry criteria. Salesforce uses the process's initial submitter settings for this.
- Flow or Apex. A flow can use the Submit for Approval action. Apex uses
Approval.process, covered in a later chapter. - Another approval step. A record can also enter a second process through an action, depending on how you design it.
Who can submit
The initial submitters setting limits who can start the process. The choices include record owners, users in certain roles or public groups, and the record's creator. If the current user is not an allowed submitter, the button is hidden or the submission fails with an error. Admins with the right permission may still submit on behalf of others, but only if the process allows it.
Common submission errors
| Message or symptom | Likely cause |
|---|---|
| The Submit for Approval button is missing | The button is not on the layout, no active process matches the record, or the user is not an allowed submitter. |
| "No applicable approval process was found" | The record does not meet the entry criteria of any active process. |
| "This record is currently in an approval process" | The record already has a pending approval instance. |
| "Process failed. First step has no valid approver" | The first step's approver field is blank or points to an inactive user. |
When the first step has no valid approver, the process setting for empty approvers decides the outcome. You can either block submission or let an admin or another configured user approve.
Responding to a request
An approver can respond from several places.
- Email. The approval request email includes a link to the record. If email approval is set up, the approver can reply with
approveorrejectand a comment. - Approval Requests related list. On the record, the Approval History section shows an Approve/Reject link for the current approver.
- Items to Approve. This home page component and the Approval Requests tab list every pending request for the user.
- Salesforce mobile app and Slack. Both show approval requests when they are enabled for your org.
Each approver chooses Approve or Reject and may add a comment. Reassign is available only when the process allows approvers to delegate. The setting is "Allow approvers to reassign requests" in a delegated approver configuration, so check it if the option is missing.
What each response does
| Response | Effect |
|---|---|
| Approve | Moves to the next step. At the final step, the instance becomes Approved and the final approval actions run. |
| Reject | Applies the step's rejection behavior. By default this runs the final rejection actions and ends the instance. A step can instead send the request back to the previous approver. |
| Reassign | Passes the request to another user. The instance stays pending. |
| Recall | Removes the pending request and runs the recall actions. |
Multiple approvers on one step
If a step names several approvers, the step's rule applies. With unanimous approval, every approver must approve. One rejection rejects the request. With first response, the first approver to act decides the outcome, and the other pending requests disappear. See the earlier chapter on multiple approvers for details.
Recall
Recall pulls a request back before a final decision. The Recall Approval Request link is available to the submitter. An administrator can also recall requests if the process permits it. The process must have Allow submitters to recall approval requests turned on.
Recall runs the recall actions you configured, for example a field update that resets a Status field to Draft. It then unlocks the record, as long as no later action locks it again. The instance ends with a status of Removed.
Recall is different from rejection. Rejection is a decision by an approver. Recall is the submitter's choice to withdraw. Reports and approval history show the two separately.
Record locking and who can edit
While an instance is pending, the record is locked. By default, only an administrator can edit it. You can configure the process so that the current approver can also edit the record. The lock affects users in these ways:
- Regular users cannot edit locked fields, and they cannot delete the record.
- Approvers who are allowed to edit can change the record, but their edits do not restart the process.
- Admins can unlock a record manually from the record's approval history, using the Unlock Record action, if they have the Modify All Data permission or the unlock permission.
Approval, rejection, and recall each can lock or unlock the record, depending on your action settings. A common design leaves the record locked after approval, so that the approved value cannot change.
Reading the approval history
On the record, the Approval History related list shows each step, who acted, the date, the status, and the comment. It also shows pending requests with the assigned approver. Keep the list on the page layout, or users will not see why a record is locked.
For reports, use the report type for approvals and process instances. The next chapters cover the data model behind these views.
An example walk-through
A discount request on an Opportunity has two steps. Step 1 goes to the sales manager. Step 2 goes to the finance queue. The rejection action sets Discount Status to Rejected.
- A sales rep opens the Opportunity and chooses Submit for Approval. The record is locked. Discount Status becomes Pending through an initial submission field update.
- The manager gets an email. They open the record, choose Approve, and add a comment.
- Step 2 creates a request for the finance queue. Any queue member can open it. If a member claims and approves it, the process reaches the last step.
- The final approval action sets Discount Status to Approved and leaves the record locked.
If finance rejects in step 3, the final rejection action sets Discount Status to Rejected and unlocks the record. The rep can then edit the discount and resubmit. A resubmission creates a new instance and does not reopen the old one.
Edge cases to know
- Only one active instance per record. A record cannot be submitted again while it is pending. Recall first.
- Changes to the process do not affect running instances. Edits to an active process apply to new submissions only. Deactivating a process with pending requests is blocked until the requests are completed or removed, depending on the org's settings.
- Queue approvers. A request assigned to a queue shows in the queue's list. Any member can act on it. Only the member who acts is recorded in history as the actor.
- Inactive approvers. A request assigned to a user who is later deactivated stays pending. An admin must reassign it.
- Deleted records. Deleting a record also removes its pending approval instance.
- Admin override. An admin can approve or reject any pending request from the record's Approval History, which is useful when an approver is out of office.
Exercise
A sales rep submitted an Opportunity for approval, then realized the discount was wrong. The Recall link is not shown on the record. Name two settings or conditions you would check, and say what the rep should do once recall works.
Show answer
Check that the approval process has "Allow submitters to recall approval requests" enabled, and check that the rep is the submitter of the pending request (or that an admin is acting). Once recall works, the rep recalls the request, which runs the recall actions and unlocks the record. The rep then edits the discount and submits again, which creates a new approval instance.
Exercise
A step uses unanimous approval with three approvers. Two approve and one rejects. What is the result, and what happens to the record's lock if the rejection action unlocks the record?
Show answer
The request is rejected, because under unanimous approval a single rejection rejects the whole request. The final rejection actions run, and if one of them unlocks the record, the lock is released so the submitter can edit and resubmit.