7. Automation

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

What is the primary function of Workflow Rules in Salesforce?

  • To trigger actions based on criteria evaluated on a single record (correct)
  • To automate the entire Salesforce interface
  • To create comprehensive applications without any coding
  • To trigger actions based on criteria evaluated on multiple records

Which action is NOT associated with Workflow Rules?

  • Sending email alerts
  • Creating a task
  • Updating fields
  • Creating a new record type (correct)

What distinguishes Approval Processes from Workflow Rules?

  • Approval Processes cannot lock records during the process
  • Approval Processes require a sequence of steps for approval (correct)
  • Approval Processes can only create email alerts
  • Approval Processes are restricted to immediate actions

As of the Winter '23 update, what key change affects Workflow Rules?

<p>No new Workflow Rules may be created, but existing ones can be edited (B)</p> Signup and view all the answers

Which component is NOT part of the lifecycle of an Approval Process?

<p>User Input Actions (A)</p> Signup and view all the answers

Which of the following statements about the capabilities of Flow is TRUE?

<p>Flow can automate business processes without any coding (C)</p> Signup and view all the answers

What type of actions can be performed by both Workflow Rules and Approval Processes?

<p>Creating tasks (D)</p> Signup and view all the answers

Why are Workflow Rules still considered relevant despite being phased out?

<p>They are crucial for understanding Approval Processes (C)</p> Signup and view all the answers

What is the purpose of the Fault Path in a Flow?

<p>To handle errors that occur during Flow execution (B)</p> Signup and view all the answers

Which statement best describes the Rollback Records element in Screen Flows?

<p>It undoes all changes made in the database up to that point (C)</p> Signup and view all the answers

What triggers Record-Triggered Flows?

<p>The creation, updating, or deletion of records (D)</p> Signup and view all the answers

What is the function of the $Record_Prior global variable in Flows?

<p>It holds the previous state of a record before it was updated (B)</p> Signup and view all the answers

Which action is NOT commonly automated in an Approval Process?

<p>Rolling back database changes (D)</p> Signup and view all the answers

What distinguishes an Autolaunched Flow from other types of Flows?

<p>It has no user interface and runs automated actions (B)</p> Signup and view all the answers

In which scenario would a Before-Save Record-Triggered Flow be used?

<p>To update the triggering record only before it is saved (C)</p> Signup and view all the answers

What is the main purpose of using Subflows within Flows?

<p>To encapsulate reusable actions and reduce duplication (C)</p> Signup and view all the answers

What must be done for users to launch an Approval Process manually?

<p>The 'Submit for Approval' button needs to be added to a layout (C)</p> Signup and view all the answers

Which type of Flow is executed at a predetermined time and frequency?

<p>Schedule-Triggered Flow (D)</p> Signup and view all the answers

What is the maximum number of approval steps allowed in a multi-step approval process?

<p>30 (A)</p> Signup and view all the answers

Which feature is NOT supported by Process Builder?

<p>Sending outbound SOAP messages (D)</p> Signup and view all the answers

What does the acronym RAPSS stand for in relation to Flow types?

<p>Record, Autolaunched, Platform, Scheduled, Screen (C)</p> Signup and view all the answers

What is a key feature of Before-Save Record-Triggered Flows?

<p>Fast field updates (B)</p> Signup and view all the answers

How can Screen Flows be deployed?

<p>Through Lightning App Builder (C)</p> Signup and view all the answers

Which type of Flow allows execution when a specific Platform Event is published?

<p>Platform Event Triggered Flows (C)</p> Signup and view all the answers

What is the main role of the Flow Trigger Explorer?

<p>To manage the order of execution for Record-Triggered Flows (B)</p> Signup and view all the answers

What is a unique feature of Login Flows?

<p>They must be completed before users log into Salesforce (B)</p> Signup and view all the answers

Which is a best practice for using Process Builder?

<p>Limit to one process per object (C)</p> Signup and view all the answers

What distinguishes After-Save Record-Triggered Flows from Before-Save?

<p>They can perform actions on other records (C)</p> Signup and view all the answers

Which element is considered part of the building blocks of a Flow?

<p>Screen Component (A)</p> Signup and view all the answers

What happens during the approval process concerning record editing?

<p>Records are locked and may not be edited (D)</p> Signup and view all the answers

Which aspect of Process Builder is slated for retirement?

<p>The ability to create new processes (B)</p> Signup and view all the answers

Which type of Flow can specify immediate or scheduled actions based on multiple criteria?

<p>Process Builder (A)</p> Signup and view all the answers

What is the primary use case for Autolaunched Flows?

<p>Performing reusable logic within other Flows (C)</p> Signup and view all the answers

Which element is NOT typically available in Schedule-Triggered Flows?

<p>Screen Element (B)</p> Signup and view all the answers

What model does Platform Events follow?

<p>Publisher/subscriber model (B)</p> Signup and view all the answers

What is a key characteristic of Flow Debugging?

<p>It provides detailed information about Flow execution (D)</p> Signup and view all the answers

What limitation should be considered when using database elements in Flows?

<p>They should be avoided in loops to improve efficiency (B)</p> Signup and view all the answers

What is the primary purpose of Fault Paths in Flows?

<p>To manage and mitigate errors in Flows (A)</p> Signup and view all the answers

What is the significance of the Save Order of Execution in Salesforce?

<p>Is crucial for complex Flows, especially Record-Triggered Flows (B)</p> Signup and view all the answers

What can Schedule-Triggered Flows be configured to do?

<p>Select records to act on at specified times (A)</p> Signup and view all the answers

Which tool should be chosen when needing to update records efficiently?

<p>Record-Triggered Flow (C)</p> Signup and view all the answers

What is meant by Input/Output Resources in the context of Subflows?

<p>They allow passing data into and out of Subflows (C)</p> Signup and view all the answers

How many records can be involved in a Flow runtime operation?

<p>2000 (C)</p> Signup and view all the answers

What is the main goal of creating a Fault Path?

<p>To handle errors and guide alternative execution paths (A)</p> Signup and view all the answers

What is a critical aspect of the Salesforce Flow development process?

<p>Thorough debugging and testing procedures (B)</p> Signup and view all the answers

Which statement regarding Platform Events is true?

<p>They allow publishing via multiple methods including Apex (B)</p> Signup and view all the answers

What can be achieved by using the Process Builder compared to Workflow Rules?

<p>It allows for multiple sets of criteria. (B)</p> Signup and view all the answers

Which of the following is true about Screen Flows?

<p>They provide a user interface for data collection. (B)</p> Signup and view all the answers

What distinguishes Before-Save Flows from After-Save Flows?

<p>After-Save Flows can execute scheduled paths. (C)</p> Signup and view all the answers

How do Platform Event Triggered Flows function?

<p>They subscribe to events sent from external systems. (B)</p> Signup and view all the answers

What role does the 'Submit for Approval' button play in Approval Processes?

<p>It is required to initiate the approval process. (C)</p> Signup and view all the answers

What are the five core types of Flows?

<p>Screen, Auto-launched, Record-Triggered, Platform Event Triggered, Scheduled. (B)</p> Signup and view all the answers

What is the purpose of the $Record global variable in Record-Triggered Flows?

<p>To reference the triggering record's information. (C)</p> Signup and view all the answers

What unique feature does the Process Builder offer compared to Workflow Rules?

<p>Support for multiple criteria sets. (C)</p> Signup and view all the answers

Which statement is true regarding the use of Flows in Salesforce?

<p>Flows can run without user input. (C)</p> Signup and view all the answers

What is the main distinction between Auto-launched Flows and Screen Flows?

<p>Auto-launched Flows have no user interface. (A)</p> Signup and view all the answers

What feature allows for customizing the user experience in Screen Flows?

<p>Customizing navigation with buttons. (A)</p> Signup and view all the answers

Which of these elements is NOT part of Flows?

<p>Data Sources. (D)</p> Signup and view all the answers

What is one common best practice when creating processes in the Process Builder?

<p>Use only one process per object. (A)</p> Signup and view all the answers

What is the purpose of Fault Paths in Flows?

<p>To handle errors that occur during flow execution. (C)</p> Signup and view all the answers

Flashcards

Workflow Rule

Automated process triggered when specific criteria are met on a single record, executing immediate or time-dependent actions.

Workflow Action

Actions triggered by a Workflow Rule, occurring immediately or after a specified time.

Approval Process

A process automation tool used to define the steps required to approve a record.

Entry Criteria (Approval Process)

The initial criteria a record must meet to start the Approval process.

Signup and view all the flashcards

Initial Submission Actions (Approval Process)

Actions performed immediately after a record is submitted for approval.

Signup and view all the flashcards

Approval Steps (Approval Process)

Steps within an Approval Process where a decision to approve or reject is made.

Signup and view all the flashcards

Final Approval/Rejection Actions (Approval Process)

Actions performed upon final approval or rejection of a record.

Signup and view all the flashcards

Record Locking (Approval Process)

Records within an approval process are locked, preventing changes while the process is ongoing.

Signup and view all the flashcards

Screen Flow

A type of Flow that provides a user interface for gathering or displaying information.

Signup and view all the flashcards

Fault Path

A branching path in a Flow that handles errors.

Signup and view all the flashcards

Rollback Records

A Flow element that undoes all database changes made up to a point in a Screen Flow.

Signup and view all the flashcards

Process

A grouping of one or more criteria with actions that can automatically fire based off of the evaluation of the criteria.

Signup and view all the flashcards

Record-Triggered Flow

A Flow that performs automated tasks when a record is created, updated, or deleted.

Signup and view all the flashcards

Global Variables

System-provided variables that give information about the Salesforce org, the running user, and more.

Signup and view all the flashcards

Subflow

A Flow Element that launches another Flow.

Signup and view all the flashcards

Save Order of Execution (SOOE)

The order in which processes fire in the background when a record is saved or updated in Salesforce.

Signup and view all the flashcards

Multi-Step Approvals

An automated process initiated through a button or flow, enabling multiple approval steps with a maximum of 30 steps and 25 approvers per step.

Signup and view all the flashcards

Editing During Approval Process

Allows for record editing by approvers or admins during the approval process, providing flexibility.

Signup and view all the flashcards

Process Builder

A visual tool for creating automated processes with point-and-click functionalities, offering more power than workflow rules.

Signup and view all the flashcards

Process Types

Types of processes in Process Builder, encompassing record change, platform events, and invocable operations.

Signup and view all the flashcards

Process Builder Actions

The actions a Process Builder can perform, including Apex execution, record manipulation, email sending, and flow launching.

Signup and view all the flashcards

Flow Types

Different types of Flows based on their trigger and functionality, categorized as Record-triggered, Autolaunched, Platform Event, Scheduled, and Screen.

Signup and view all the flashcards

Flow Resources

The data containers used by Flow elements, including variables, constants, formulas, and explicit/implicit resources.

Signup and view all the flashcards

Flow Elements

The building blocks of a Flow, encompassing components like screens, actions, decisions, loops, and record operations.

Signup and view all the flashcards

Screen Components

Components within Screen Flows that enable data input and output, creating interactive elements for users.

Signup and view all the flashcards

Direct Assignment

The ability to directly assign values to Flow resources using specific components, simplifying data management.

Signup and view all the flashcards

Platform Event Triggered Flows

Flows that are executed when a specific Platform Event is published, allowing for trigger-based automation.

Signup and view all the flashcards

What is a Workflow Rule?

An automation tool that triggers pre-defined Workflow Actions when a single record meets specific criteria.

Signup and view all the flashcards

What is a Platform Event Triggered Flow?

A type of Flow that runs in the background whenever a predetermined Platform Event is published.

Signup and view all the flashcards

What are Platform Events?

Customizable event notifications that follow a publisher/subscriber model. Events can be triggered both inside and outside of Salesforce.

Signup and view all the flashcards

What are Autolaunched Flows?

Flows without an associated trigger, commonly used for reusable logic within other Flows.

Signup and view all the flashcards

What are Schedule-Triggered Flows?

Flows that execute at a specific time and frequency (once, daily, or weekly).

Signup and view all the flashcards

What are Flow Debugging tools?

Tools for testing and troubleshooting flows, including running flows as other users, detailed debug logs, and rollback options.

Signup and view all the flashcards

What is a Fault Path?

A branching path that executes when a Flow error occurs.

Signup and view all the flashcards

Why are Flow Naming Conventions important?

Important for keeping flows organized and understandable.

Signup and view all the flashcards

What is a best practice for using Flow elements in loops?

Avoid placing database operations (create, update, get) inside of loops.

Signup and view all the flashcards

What is a best practice for handling large data in Flows?

When working with multiple records, always use collections and operate on the entire collection instead of handling individual records within a loop.

Signup and view all the flashcards

What is the key shift happening in Salesforce automation?

Salesforce is shifting away from Workflow Rules and Process Builder, with Flows being the primary automation tool.

Signup and view all the flashcards

What are the key advantages of using Flows for automation?

Flows offer a wide range of automation options and capabilities that span across other Salesforce tools.

Signup and view all the flashcards

Why is it important to consider context when working with Flows?

Understanding the context in which a Flow executes (user context vs. system context, or before/after save) is crucial for success.

Signup and view all the flashcards

What is the importance of debugging and best practices when creating Flows?

Thorough testing using debugging tools and adhering to best practices is essential for building stable and efficient Flows.

Signup and view all the flashcards

Why is it important to understand the Save Order of Execution (SOOE) in Salesforce?

Understanding the sequence in which Salesforce processes different elements is crucial for complex Flows, particularly Record-Triggered Flows.

Signup and view all the flashcards

Three actions a Workflow Rule can perform

Creating a Task record, sending an email alert, and making field updates on a record.

Signup and view all the flashcards

Created, and any time it's edited to subsequently meet criteria

This setting in Workflow Rules means the rule will be evaluated when a record is initially created and every time it's edited, as long as the updated record meets the specified criteria.

Signup and view all the flashcards

Flows

A comprehensive automation tool in Salesforce that uses a set of actions (Elements) to execute logic based on defined criteria. Each execution is called a Flow Interview.

Signup and view all the flashcards

Auto-Launched Flows

Auto-launched Flows trigger automatically when a predefined event happens. They are not initiated by user actions.

Signup and view all the flashcards

Platform Event

A customizable event notification that can be sent from inside or outside a Salesforce organization, and does not require a database change.

Signup and view all the flashcards

Rollback Records element

The Rollback Records element in Screen Flows helps to undo changes made during the flow. If an error occurs or a user cancels, it restores the original state of the record.

Signup and view all the flashcards

Submit for Approval button

In Approval Processes, the Submit for Approval button is the trigger that starts the approval process. Users click it on the record’s page to send it for review and approval.

Signup and view all the flashcards

Actions within an approval process

Approval processes allow you to automate actions like sending an email notification, updating record fields, and triggering a next step (approver) in the process.

Signup and view all the flashcards

Difference between Record-Triggered Flows and Platform Event Triggered Flows

Record-Triggered Flows are designed for a specific record, whereas Platform Event Triggered Flows are triggered by events that can happen outside of a record's scope.

Signup and view all the flashcards

Global variables in Record Triggered Flows

In Record-Triggered Flows, the '$Record' global variable accesses the triggering record's information, while the '$Record__Prior' global variable provides access to the record's previous state before the change.

Signup and view all the flashcards

Study Notes

Salesforce Process Automation Tools

  • Workflow Rules: A tool to automate actions based on single-record criteria. Actions can be immediate or time-dependent, involving tasks, email alerts, field updates, or outbound messages. Evaluation criteria include record creation, creation/edit, or creation/edit based on subsequent criteria. Workflow rules are deprecated, with no new rules allowed as of Winter '23. Existing rules can still be edited.
  • Approval Processes: Automate approval steps for a record. The process involves entry criteria, initial submission actions, approval steps (with actions), and final approval/rejection actions. Records are locked. Configurable actions are similar to Workflow Rules. Processes can have up to 30 approval steps with up to 25 approvers per step. Automatic approvers (e.g., using manager hierarchical fields) are possible. Editing can be allowed during the process. Records can be viewed in various locations such as email and mobile devices. Launched via submit button or flow.
  • Process Builder: A point-and-click tool for more sophisticated automated processes than Workflow Rules. Actions include running Apex, creating/updating records, sending emails, launching Flows, posting to Chatter, etc. Multiple criteria can be evaluated to trigger corresponding actions. Processes include record change, platform event, and invocable types; can execute immediate or scheduled actions. The Process Builder is being retired and new processes cannot be created. Existing processes are likely editable for some time. Best practice is one Process per object, using ISNEW() in filters. Migration to flows is possible via the Migration Tool.
  • Flows: A collection of actions guided by graphical logic in the Flow Builder. Includes various types: Record-triggered, Autolaunched, Platform Event triggered, Scheduled, and Screen Flows (RAPSS acronym). Flows utilize resources (variables, constants, formulas) and elements (Screens, Actions, Subflows, Assignments, Decisions, Loops, etc.). Contain system-provided global variables ($Flow, $UserRole). Versioned with a single active version.

Flow Types

  • Record-Triggered Flows: Execute on record creation, update, or deletion. Two types: Before-Save (for quick, single-record updates - access to record ID unavailable before record is saved) and After-Save (for actions on other records, utilizing system fields and $Record/$Record__Prior). Scheduled paths can be created to execute actions after the record is saved.
  • Platform Event Triggered Flows: Triggered by a specified platform event's publication. These events, using a publisher/subscriber model, can be triggered inside or outside Salesforce. The $Record variable holds the Platform Event message's fields.
  • Autolaunched Flows: Execute without a trigger; often used as reusable Subflows. Launched by various means (Processes, Apex, REST API, Flow Orchestration, or Subflows).
  • Schedule-Triggered Flows: Execute at a specific time and frequency (once, daily, weekly). Records can optionally be selected for action.
  • Screen Flows: Provide a user interface (UI) for data gathering or display. Elements include screen components (input/output elements). Can be deployed via Lightning App Builder, Quick Actions, or Custom Buttons, offering both User Context and System Context. Can perform data assignments directly and include record fields. Navigation control elements (Next, Back, Pause). Login Flows are a special type.

Debugging and Best Practices

  • Utilize Flow debugging tools including testing as another user, viewing detailed logs, and rolling back changes.
  • Implement error handling using Fault Paths to manage errors & Rollback Elements to reverse actions in Screen flows.
  • Practice naming conventions for flow organization.
  • Avoid putting database elements (create, update, get) inside loops within a flow.
  • Use collections when handling multiple records, and operate on the whole collection instead of individual records. Avoid placing database changes within loops. Use collections instead and act on the whole collection to avoid bottlenecks. Choose the appropriate flow type (e.g., Record-Triggered Flow instead of Screen Flow) for efficient execution.

Key Takeaways

  • Salesforce is migrating towards Flows as the primary automation tool.
  • Flows are versatile and encompass several automation options.
  • Context consideration in Flows (user vs. system context) and record-lifecycle (before vs. after save).
  • Thorough testing and robust best practices are essential for stable and efficient flow design.
  • A solid understanding of Save Order of Execution (SOOE) is critical for complex flows, particularly record-triggered flows.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

Salesforce Administration Quiz
0 questions

Salesforce Administration Quiz

CheerfulChrysoprase2083 avatar
CheerfulChrysoprase2083
Salesforce Email Automation Quiz
10 questions
Use Quizgecko on...
Browser
Browser