Specify Final Approval and Rejection Actions
Follow Along with Trail Together
Want to follow along with an instructor as you work through this step? Take a look at this video, part of the Trail Together series on Trailhead Live.
(This clip starts at the 35:42 minute mark, in case you want to rewind and watch the beginning of the step again.)
Introduction
The last steps in your discount approval process are creating final approval actions and final rejection actions. Final approval actions occur when all required approvals are obtained. Final rejection actions occur when an approver rejects the request and it moves to the final rejection state. Based on the criteria set by VP Allison Wheeler, either she or a Manager may have actions to complete at this point, depending on the percentage of the discount requested.
Set Up Approval Actions
First, get to work on the yeas, setting up approval actions, including an approval email notification:
- If you’ve navigated away from where you left off in the previous step, from Setup, select Approval Processes, and click Discount Approval Process.
- Click the Deactivate button at the top of the Discount Approval Process page.
- In the Final Approval Actions list, click Add New, then click Field Update and complete the field update details with these values:
Field | Value |
---|---|
Name | Approval Status to Approved |
Unique Name | [this field auto-completes] |
Field to Update | Approval Status
|
Picklist Options: A specific value | Approved
|
- Click Save.
- In the Final Approval Actions list, click Add New, then click Email Alert and complete the email alert details:
Field | Value |
---|---|
Description | Discount Approved |
Unique Name | [this field auto-populates] |
Email Template | Discount Approved |
Recipient Type: Search | Owner
|
Selected Recipient | Opportunity Owner
|
- Click Save.
- In the Final Approval Actions section, click Edit next to Record Lock.
- Select Unlock the record for editing.
- Click Save.
Set Up Rejection Actions
And now for the nays. Set up for rejection actions, including a rejection email. (Hey—it’s better than a sticky note.)
- In the Final Rejection Actions list, click Add New, then click Field Update and complete the field update details:
Field | Value |
---|---|
Name | Approval Status to Not Approved |
Unique Name | [this field auto-populates] |
Field to Update | Approval Status
|
Picklist Options: A specific value | Not Approved
|
- Click Save & New and complete the new rejection action details:
Field | Value |
---|---|
Name | Clear Discount Percentage |
Unique Name | [this field auto-populates] |
Object | Opportunity
|
Field to Update | Discount Percentage
|
Number Options | A blank value (null)
|
- Click Save.
- In the Final Rejection Actions section, click Add New, then click Email Alert and complete the email alert details:
Field | Value |
---|---|
Description | Discount Rejected |
Unique Name | [this field auto-populates] |
Email Template | Discount Rejected
|
Recipient Type: Search | Owner
|
Selected Recipient | Opportunity Owner
|
- Click Save.
- Click Activate.
- Click OK to confirm the activation.
Congratulations—you’ve done it! You’ve prepared your org with new users, a new role, custom fields, and email templates. You’ve created an automated approval process with specific criteria tied to specific approvers. You’ve enabled auto-generated emails for approval and rejection actions. You’ve made AW Computing’s new VP very happy with this time-saving process. And you’ve earned a shiny new badge to boot. Thumbs up, admin.