Skip to main content
Join the Agentforce Hackathon on Nov. 18-19 to compete for a $20,000 Grand Prize. Sign up now. Terms apply.

Set Up an Approval Process

Learning Objectives 

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

  • Create an approval process for shifts.
  • Request for shift approval.
  • Respond to shift approval requests.

Create an Approval Process

Matt has completed the prerequisites for the final step of his plan and now he’s ready to carry out the step. It’s time to set up the approval process that Cumulus retail bankers use to submit shift approval requests. Cumulus branch managers and partner branch managers use the approval process to approve or reject requests. Retail bankers can also recall their shift approval requests.

To set up the approval process, Matt must complete these tasks.

  1. Create a process that sends requests to all the approvers in the queue when Cumulus retail bankers submit shift records for approval.
  2. Add an approval step to specify which records can advance to the next step.
  3. Add the actions that must be performed when a shift is approved, rejected, or recalled.

Create Shift Approval Process

Matt uses the Standard Setup Wizard to create the approval process. Among other things, the wizard allows him to specify which records are eligible for approval process, specify which notification templates to use, and specify who can submit approval requests.

Here’s how Matt uses the Standard Setup Wizard to create an approval process.

  1. Click Setup, and then click Setup.
  2. In the Quick Find box, enter Approval Processes, and click Approval Processes.
  3. From the Manage Approval Processes For dropdown list, select Shift.
  4. From the Create New Approval Process dropdown list, select Use Standard Setup Wizard.The Approval Processes page with the Use Standard Setup Wizard option selected.
  5. In the Enter Name and Description step:
    • Enter Shift Approval Process_Retail Bankers as the name, and then press Tab to auto-populate the unique name.
    • Click Next.
  6. In the Specify Entry Criteria step:
    • From the Use this approval process if the following dropdown list, select criteria are met.
    • Select Current User: Profile as the field, equals as the operator, and enter Retail Banker as the value.
      If you add multiple criteria, then add the filter logic as necessary.
    • Click Next.The Specify Entry Criteria step of the New Approval Process page.
  7. In the Specify Approver Field and Record Editability Properties step:
    • Ensure that the value of Next Automated Approver Determined By is set to None.
    • Select Administrators ONLY can edit records during the approval process.
    • Click Next.The Specify Approver Field and Record Editability Properties step of the New Approval Process page.
  8. In the Select Notification Templates step, select the Shift Created email template, and then click Next.The Select Notification Templates step of the New Approval Process page.
  9. In the Select Fields to Display on Approval Page Layout step:
    • Move Shift Number, Owner Name, Service Territory, Work Type Group, Start Time, and End Time to the list of Selected Fields.
    • Select Display approval history information in addition to the fields selected above.
    • Click Next.The Select Fields to Display on Approval Page Layout step of the New Approval Process page.
  10. In the Specify Initial Submitters step:
    • Ensure that Shift Owner is in the Allowed Submitters list. If Shift Owner isn’t selected by default, follow these steps:
      • For Submitter Type, select Owner from the Search dropdown list.
      • Select Shift Owner from the list of Available Submitters, and then click Add.
    • Select Add the Submit for Approval button and Approval History related list to all Shift page layouts.
    • Select Allow submitters to recall approval requests.The Specify Initial Submitters step of the New Approval Process page.
  11. Click Save.

Add an Approval Step

Matt adds an approval step to specify which approval requests can advance to that step.

  1. If you’re on the What Would You Like To Do Now? page, select Yes, I'd like to create an approval step now., and then click Next. If you’re not on the page, then:
    • Click Setup, and then click Setup.
    • In the Quick Find box, enter Approval Processes, and click Approval Processes.
    • Click Shift Approval Process_Retail Bankers.
    • Click New Approval Step.
  2. In the Enter Name and Description step:
    • Enter Shift Approval Step as the name.
    • Press Tab to auto-populate the unique name.
    • Click Next.
  3. In the Specify Step Criteria section, select All records should enter this step., and then click Next.The Specify Step Criteria step of the New Approval Step page.
  4. In the Select Assigned Approver step, select Automatically assign to queue., select Shift Approvers as the queue, and then click Save.The Select Assigned Approver step of the New Approval Step page.

Add Approval, Rejection, and Recall Actions

To automate status change and notifications, Matt must add approval, rejection, and recall actions. Here’s how Matt adds an approval action to update the status field to Confirmed when a shift is approved. 

  1. Click Setup, and then click Setup.
  2. In the Quick Find box, enter Approval Processes, and click Approval Processes.
  3. Click Shift Approval Process_Retail Bankers.
  4. In the Final Approval Actions section, click the Add New dropdown list, and then select Field Update.
  5. On the New Field Update page:
    • Enter Update Status to Confirmed as the name.
    • Press Tab to auto-populate the unique name.
    • From the Field to Update dropdown list, select Status.
    • Select A specific value, and then select Confirmed from the dropdown list.
    • Click Save.

Next, Matt adds another approval action to send emails to retail bankers when their shift requests are approved.

  1. Click Setup, and then click Setup.
  2. In the Quick Find box, enter Approval Processes, and click Approval Processes.
  3. Click Shift Approval Process_Retail Bankers.
  4. In the Final Approval Actions section, click the Add New dropdown list, and then select Email Alert.
  5. On the New Email Alert page:
    • For the description, enter Send an approval email to retail bankers.
    • For the name, enter Shift Approval Email.
    • For Email Template, select Shift Approved.
    • For Recipient Type, from the Search dropdown list, select Owner.
    • Select Shift Owner from the list of Available Recipients, and then click Add.
    • In the From Email Address dropdown list, select Current User’s email address.
    • Click Save.

Matt repeats similar steps and uses the Shift Rejected and Shift Recalled templates to add final rejection actions and recall actions.

Activate the Approval Process

Here’s how Matt activates the approval process.

  1. Click Setup, and then click Setup.
  2. In the Quick Find box, enter Approval Processes, and click Approval Processes.
  3. Click Shift Approval Process_Retail Bankers.
  4. Click Activate.

Create a Shift and Request for Approval

Matt informs Fola that they’re all set to use the approval process. Fola is excited and can’t wait to see the process in action. Fola asks Arun to create a shift record and send it for approval. Arun dives right in! 

  1. Click App Launcher to open the App Launcher.
  2. Select Shifts.
  3. Click New.
  4. Provide the following details.
    • Start Time: Select a date and time
    • End Time: Select a date and time
    • Status: Published
    • Work Type Group: Wealth Management
    • Service Territory: Headquarters
    • Service Resource: Arun
    • Time Slot Type: Normal
  5. Click Save. The shift record page appears.
  6. On the shift record page, click Show more actions, and then click the Submit for Approval quick action.The Submit for Approval quick action on the shift record page.
  7. In the Submit for Approval popup, enter Hey Fola, here’s the first approval request., and then click Submit.

After Arun submits the shift for approval, Fola receives a shift approval request via email.

Respond to an Approval Request

Fola logs in to Salesforce. She’s pleasantly surprised to see an approval notification request there as well. She proceeds to approve the request.

  1. Click App Launcher to open the App Launcher.
  2. Select Shifts.
  3. Click the shift record with the approval request.
  4. Click Approve.
  5. In the Comments window that appears, enter Your shift is approved., and then click Approve.

Arun receives an email notifying that his shift request is approved. He then checks the shift record in Salesforce and sees that the status is confirmed. Arun and Fola decide to explore the approval process a bit more. They repeat the approval request process to test the reject action and the recall action. 

The Approval Process Is Approved!

Matt and Fola meet the larger group to demonstrate the changes they’ve made as a part of the preparation for the upcoming quarter. They showcase how shift records are shared only with relevant users, how users can access only relevant shifts statuses, and how the new approval process works. When they’re asked for feedback, everyone gives the thumbs up.

Fola thanks Matt for saving time by eliminating the need to monitor shifts with incorrect statuses, and by streamlining the approval process. She wraps up by joking that they can now discuss weather and sports in their meetings instead of negotiating shifts.

Resources

Share your Trailhead feedback over on Salesforce Help.

We'd love to hear about your experience with Trailhead - you can now access the new feedback form anytime from the Salesforce Help site.

Learn More Continue to Share Feedback