All exams← All Salesforce Certified Administrator notes

Workflow and Process Automation: Salesforce Certified Administrator revision notes

Revision notes

Salesforce provides several powerful declarative tools to automate business processes, enhance efficiency, and maintain data integrity. Understanding these tools and their appropriate use cases is crucial for a Salesforce Administrator.

## Workflow Rules

Workflow Rules are the oldest automation tool, primarily used for simple, single-object automation. While still functional, Salesforce recommends using Flow for new automation. They consist of evaluation criteria (e.g., created, created & every time it's edited) and rule criteria.

  • Actions: Task (assigns a task), Email Alert (sends an email), Field Update (changes a field on the triggered record or its master in a master-detail relationship), Outbound Message (sends data to an external system).

## Process Builder

Process Builder is a more powerful, node-based automation tool that extends the capabilities of Workflow Rules. Salesforce is also deprecating Process Builder in favor of Flow.

  • It can automate processes across multiple objects and perform more complex actions than Workflow Rules.
  • Key capabilities: Creating records, updating any related record (parent, child, or unrelated via lookup), invoking a Flow, calling Apex code, posting to Chatter.

## Flow Builder

Flow Builder is Salesforce's most powerful and recommended declarative automation tool. It can handle almost any business process automation requirement, offering high flexibility and control.

  • Flow types:
  • Screen Flow: Guides users through a business process with screens for input.
  • Record-Triggered Flow: Launches when a record is created, updated, or deleted (can be before-save or after-save).
  • Schedule-Triggered Flow: Runs at specified times and frequencies.
  • AutoLaunched Flow (No Trigger): Can be invoked by Apex, Process Builder, or REST API.
  • Elements include: Get Records, Create Records, Update Records, Delete Records, Decisions, Assignments, and Actions.

## Approval Processes

Approval Processes are used to automate the process of approving records that require multiple steps or multiple approvers.

  • They define the entry criteria, approval steps (with assigned approvers), and actions to be taken at each stage (initial submission, final approval, final rejection, recall).
  • Actions are similar to Workflow Rules (Field Update, Email Alert, Task, Outbound Message).

## Choosing the Right Tool

  • For new automation, Flow Builder is almost always the preferred choice due to its versatility and power.
  • Use Approval Processes specifically for multi-step record approval workflows.
  • Understand Workflow Rules and Process Builder for maintaining existing automation in an org, but avoid them for new implementations where Flow is capable.

Key facts

Flashcards

What are the four types of actions available with Workflow Rules?
Task, Email Alert, Field Update, Outbound Message.
tap to reveal
Which automation tool is Salesforce's recommended solution for new declarative automation?
Flow Builder.
tap to reveal
When would you use an Approval Process?
To automate multi-step approval requirements for records.
tap to reveal
What is a key capability of Process Builder that Workflow Rules lack?
Creating records or updating related records (e.g., child records or unrelated records via lookup).
tap to reveal
Name two types of Flows.
Screen Flow, Record-Triggered Flow, Schedule-Triggered Flow, AutoLaunched Flow (any two).
tap to reveal
What is the primary difference between a 'before-save' and 'after-save' Record-Triggered Flow?
Before-save flows run before the record is committed to the database and are faster for updating the triggering record's fields, as they don't require an extra DML operation.
tap to reveal
Can Workflow Rules update fields on a related record (e.g., a child record or a lookup-related record)?
No, Workflow Rules can only update fields on the record that triggered the rule or its master record in a master-detail relationship.
tap to reveal
Practice questions

Workflow and Process Automation: 5 practice questions

Q1. A sales manager wants to automatically update an Opportunity's Stage to 'Closed Won' and set the Close Date to today when a custom checkbox field named 'Contract Signed' is checked. Which automation tool is the most appropriate and modern solution for this requirement?
  • A.  Assignment Rule
  • B.  Record-Triggered Flow
  • C.  Validation Rule
  • D.  Escalation Rule
Show answer & explanation
✓ Answer: B. Record-Triggered Flow
A Record-Triggered Flow is the current, recommended tool for automatically updating fields on the same record or related records when specific criteria are met, and it can handle multiple field updates in one process.
Q2. When an Opportunity is submitted for approval, an administrator wants to lock the record to prevent any edits by users during the approval process. Where is this standard behavior configured?
  • A.  As a final approval action.
  • B.  In the 'Record Editability Properties' section of the approval process definition.
  • C.  In the initial submission actions of the approval process.
  • D.  On the submitter's User Profile under System Permissions.
Show answer & explanation
✓ Answer: B. In the 'Record Editability Properties' section of the approval process definition.
The record lock/unlock behavior is a standard declarative setting configured on the Approval Process definition itself, specifying whether the record is locked or editable upon submission.
Q3. A support manager wants to automatically create a new related 'Service Review' custom object record and assign it to the Account owner whenever a Case's Status is changed to 'Closed'. Which automation tool should be used to meet this requirement?
  • A.  Auto-Response Rule
  • B.  Assignment Rule
  • C.  Workflow Rule
  • D.  Flow
Show answer & explanation
✓ Answer: D. Flow
Flow is the correct tool because it can be triggered by a field change on one object (Case) and then create a new, related record of any object type (Service Review). Workflow Rules cannot create custom object records.
Q4. A company needs a guided, multi-step process for service agents to gather customer information for a product return. The process must display different screens and fields based on the user's previous answers. Which type of Flow is best suited for this requirement?
  • A.  Scheduled Flow
  • B.  Record-Triggered Flow
  • C.  Platform Event-Triggered Flow
  • D.  Screen Flow
Show answer & explanation
✓ Answer: D. Screen Flow
Screen Flows are designed to provide a user interface with screens, input fields, and dynamic choices, making them perfect for guided processes that require user interaction and conditional paths.
Q5. An administrator has a before-save Record-Triggered Flow, an after-save Record-Triggered Flow, and a Workflow Rule on the Case object. All are configured to run on the same record update. In which order will they execute?
  • A.  Before-save Flow, After-save Flow, Workflow Rule
  • B.  Before-save Flow, Workflow Rule, After-save Flow
  • C.  After-save Flow, Before-save Flow, Workflow Rule
  • D.  Workflow Rule, Before-save Flow, After-save Flow
Show answer & explanation
✓ Answer: B. Before-save Flow, Workflow Rule, After-save Flow
According to Salesforce's Order of Execution, before-save flows run before the record is saved. After the save, Workflow Rules execute, and then after-save flows execute.
Test yourself
See the Salesforce Certified Administrator page

More Salesforce Certified Administrator topics