Newer Version Available

This content describes an older version of this product. View Latest

Try It Out: Create Approval Actions

Now that we've finished defining our approval process steps, we're nearly done. All that remains is to specify the approval actions that should occur whenever a record is initially submitted, or when it's finally approved or rejected.

Just like workflow actions, approval actions allow you to create and assign tasks, update fields, and send email updates and outbound messages. They can be associated with the approval process as a whole or with individual approval steps.

The Approval Process Detail Page The Approval Process detail page for the Approve New Position workflow that was created for the Position object

Because defining an approval action is almost identical to the way we created workflow actions, we'll quickly step through the process of updating the Status field to Pending Approval when a position is initially submitted and then leave our other approval actions as exercises.

  1. If you're not on the approval process detail page already, from Setup, click Create | Workflow & Approvals | Approval Processes, and then click Approve New Position.
  2. In the Initial Submission Actions related list, click Add New, and select Field Update.

Does the New Field Update Action page look familiar? That's because we've seen it before—all approval tasks, field updates, email alerts, and outbound messages use the same editing interface as workflow actions. In fact, every workflow and approval action that you create can be used interchangeably on both workflow and approval processes.

  1. In the Name field, enter Set Status to Pending Approval.
  2. In the Description field, enter While a position is in an approval process, its status should be set to Pending Approval.
  3. In the Field to Update drop-down list, select Status.
  4. In the Picklist Options area, select A specific value and choose Pending Approval from the list.
  5. Click Save.

Now, to finish up the rest of the approval process, define the remaining approval actions on your own according to the values in the following table.

Table 1. Additional Approval Actions
Category Type Values
Final Approval Actions Field Update Name: Set Status to Open Approved

Field to Update: Status

A specific value: Open - Approved

Final Rejection Actions Field Update Name: Set Status to Closed - Not Approved

Field to Update: Status

A specific value: Closed - Not Approved

Final Rejection Actions Field Update Name: Set Close Date to Today

Field to Update: Close Date

Use a formula to set the new value: TODAY()