Workflow and Process Builder Flashcards

1
Q

What is Flow builder and what does the Migrate to Flow tool in Setup do?

A

Flow Builder is the primary tool for building automated solutions. The Migrate to Flow tool in Setup can be used to convert a workflow rule or process to an equivalent record-triggered flow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Workflow

A

Workflow rules are capable of automating simple business processes such as sending an email alert when a record is updated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Process Builder

A

Process Builder is capable of automating processes which require actions that are not supported by workflow rules such as creating new records other than task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Flow Builder

A

Flow Builder can be used to automate complex business processes and can be triggered automatically, for instance, on scheduled intervals, or in response to a platform event

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Approval Process

A

Approval Processes can be created to automate and standardize the approval processes for specific types of records such as opportunities, quotes, expenses, refunds, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Process Automation Tool

A

Flow Builder, Process Builder, Workflow, and Approvals are declarative tools that are used to automate business processes. Each tool supports several types of actions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What happens if a validation rule fail/ What happens when a workflow rule is executed?

A

Should a validation rule fail, the record will not be saved. If an error is encountered, the entire transaction is rolled back and no changes will be saved.

Once Workflow Rules have been executed, other rules will follow until the record is saved. Moreover, the Parent Record(s) updated by the Rollup Summary will also be processed and will go through the entire order of executio

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the 3 options to select from when defining when a workflow rule should be evaluated?

A

When a record is Created.❖When a record is Created, and every time it’s edited.❖When a record is Created, and any time it’s edited to subsequently meet criteria.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Whatis a Rule Criteria and what are the ways to define the logic?

A

Rule Criteria is the logic which determines if the rule should fire. There are 2 ways to define the logic:
CRITERIA ARE MET
FORMULA EVALUATES TO TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Formula Evaluation
What is the function that can determine if a field has been updated

A

e.g., ISCHANGED to determine if a field has been updated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the 8 workflow and assignment capabilities

A

Create Tasks
❖Send Emails
❖Field Updates
❖Outbound Messages
❖Select Existing Action
❖Immediate Actions❖
Time Dependent Actions❖
Time Trigger

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is field update and which fields will be updated with this automation

A

“Field updates can be used to update the value of a field in a record.”

❖RECORD OWNER
❖VALUE OPTIONS
❖PICKLIST FIELDS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Existing Actions

What is it associated with?

When can exisitnig actions be used?

When does immeidate actions fire?

If multiple ctions are defined what happens?

A

“Associated with a workflow rule”

-Existing actions can be used either in Immediate Workflow Actions or Time-Dependent Actions.

-Immediate actions are associated with a workflow and fire immediately when the workflow criteria is met.

-If multiple actions are defined, the order of execution is not guaranteed, but field updates execute first.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are Time Dependent Actionsand when can it be set to trigger?

A

“Time-Dependent Actions allow users to choose when the workflow actions should be executed”

-It can reference a date field on the record.

-It can be set to trigger a number of days or hours before or after a date field or trigger date.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Process Builder executes when and what is the limitation of using Process Builder

A

-Process Builder execute actions based on (single or multiple) if/then logic.

-Unlike flows or workflow rules, processes do not support sending outbound messages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Whatare the two main types of flows that can be created in Flow Builder

A

Screen Flow and Autolaunched Flow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are the different types of Triggers for an Autolaunched Flow

A

NO TRIGGER-
This flow needs to be explicitlycalled from a process, button, etc.
❖RECORD TRIGGERED-This flow is triggered when a record is created, updated, or deleted.
❖SCHEDULE TRIGGERED-This flow can be scheduled to run once, daily, or weekly.

❖PLATFORM EVENT TRIGGERED-This flow is triggered upon receiving a platform event message.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Approval Process Creation

A

STEP 1: Create the Approval Process Definition

STEP 2: Add evaluation, record criteria, and approval steps

STEP 3: Specify rejection and approval actions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Examples of Approval Process

A

Opportunity-
An approval process can be defined so that sales reps can request approval from their sales manager for opportunities with discount above 30%

-Quote: quote has been generated and an additional discount of 15% has been applied based on the quantity of the items. The Sales rep can ask for approval from his manager before sending a copy to the customer.

-Contract:Before activating a partner contract in which the auto-calculated end date is less than 2 years, the Account Executive can ask for further evaluation from his manager by submitting it for approval.

-Time Tracker:A custom object that tracks Paid-Time-Off requests can use an approval process to allow employees to submit leave requests for their manager’s approval.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Approval Steps Actions

A

An approval process can have multiple approval steps. In each step, the following items are done:

❖The records that can advance to that step are determined

❖Approvers are assigned.

❖The ability of the approver’s delegates to respond to the request is determined.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Things to consider when submitting an record for a approval

A

RECORD LOCK:
When a record is submitted for Approval, it is locked for changes (except from the system administrator and the approver) until the record has completed the approval process.

❖APPROVAL HISTORY: Approval Audit History is recorded on a separate related list.

❖DELETION: Before deleting an approval process, make sure that it is inactive and delete pending approval requests and remove them from the recycle bin.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Approval History related list

A

track the status where a record is in an approval process. Approval actions can also be selected from it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What are the several ways that an approval request can be responded to on Salesforce?

A

EMAIL ALERT:When a record is Submitted for Approval, the defined approvers will receive the Email Notification selected in the process with a link to the record and pending approval.

❖BY EMAIL:
If enabled in an org, approvers can reply to the email notification to approve or reject.

❖COMMENTS:
Comments can be added on the second line in the email reply to an email approval request.

-Mobile

-Chatter

24
Q

What is a Lightning Flow

A

Product name for process automation tools that include Process Builder and Flow Builder

25
Q

What is a Flow Builder?

A

Tool used to create flow

26
Q

What is a flow?

A

Application that can be used to collect user input and automate a business process.

27
Q

What are the three Flow Users?

A

Administrators, Developers, and Users

Admins: Use a custom button or link, custom action, standard Lightning Component, or Utility Item to deploy flows
●Use processes to start flows
●See real-time details of what the flow does by using Debug logs
●Use the flow fault email to troubleshoot flow

Developers: Deploy flows by creating Lightning pages or Visualforce pages

Users: Run flows provided that they have the ‘Run Flows’ permission

28
Q

Triggered Flows List View

A

A prebuilt Triggered Flows list view is available for easily checking which objectorplatform eventtriggers a flow instead of opening the flow to determine such information.

29
Q

Flow Builder Layout Types

A

There are two layouts in Flow Builder, Auto-Layout and Freeform.

Auto Layout- This is the default layoutin Flow Builder. In this layout, elements are automatically aligned, spaced, and fixed. To add elements on the canvas, plus (+) buttons are provided along the flow paths

FreeForm- In this layout, the elements are available in the Elements tab of the Toolbox pane. To add elements, they are dragged-and-droppedonto the canvas. Alignments and spacings are manually adjusted to give full control on how the elements and connections are positioned on the canvas.

30
Q

Flow Builder UI
(What are the three things needed for creating a flow)

A

The Flow Builder user interface provides resources,elements,and connectors for creating a flow.

31
Q

Flow Creation
Step by Step

A

Step 1: Define the resources
Step 2: Define and add elements
Step 3: Connect the elements
Step 4: Test the flow
Step : Activate the flow

32
Q

Rollback Changes
What does it do?

A

Screen flows provide a Roll Back Records element which can be used to cancel all pending record changes in a current transaction.

33
Q

Flow Screen Components
What are the components

A

Standard input/output components and custom screen components can be added to a flow screen element

34
Q

What are the Flow Builder Actions

A

There are several types of flow actions that are available in Flow Builder such as Core Actions, ApexActions, and Email Alert.

❖CORE ACTION ELEMENT:
The flow element called ‘Core Action’ can be used to perform an actionoutside of the flow.

❖APEX ACTION:
An Apex Action element can call an Apex method that is annotated with @InvocableMethod. The element’s icon can be customized by specifying an SVG or SLDS icon using the iconName attribute of the annotation.

❖APEX ACTION (LEGACY):
The Apex Action (Legacy) element can be used if an Apex class implements the Process. Plugin interface.

❖EMAIL ALERT:
The ‘Email Alert’ action can be used to send an email from an available ‘email alert’ action.

35
Q

Considerations for Using Legacy Apex Actions

A

UNSUPPORTED TYPES:
Unlike Apex actions, legacy Apex actions do not support sObject,Collection, Blob, and Time data types and bulkification.

❖PUBLIC LEGACY APEX ACTION:
A flow fails when it executes a public legacy Apex action. Public legacy Apex actions are also not available in Flow Builder.

❖GLOBAL LEGACY APEX ACTION:
Global legacy Apex actions with public describe or invoke methods are unavailable to flows in a different namespace.

36
Q

What are the 8 Core Actions in Flow Builder

A
  1. Activate/Deactivate Session Based Permission Sets

2.Submit for Approval

3.Global/Object Specific Action

4.Post to Chatter

  1. Slack Actions

6.Send Email

  1. Send Custom Notifications
  2. Send Surveys
37
Q

Whtare the declartive options used to communicate with external systems
(Flow Builder)

A

” Flow Builder includes and supports the following declarative options that are used to communicate with external systems.”

  1. Outbound Messages
  2. Platform Events
  3. HTTP Callouts
  4. External Services
38
Q

Send Email Action
(Flow Builder)

A

-CONFIGURATION:
Send Email Flow Core Action is configured within the Flow Builder, while the Email Alert Flow Action is setup outside the Flow Builder.

❖FEATURES:
Send Email action can be configured to log emails automatically to a record’s Activity Timeline. Users can also use Lightning and Classic email templates in combination with merge fields.

❖CONSIDERATIONS:
Using Email templates and logging emails with the Send Email action count against the General Email Limit instead of the Daily Workflow Email Limit. Also, emails sent using this action do not include email signatures from My Email Settings.

39
Q

Subflow

A

“The Subflow element can be used to launch another flow within a flow. Subflows can receive and send data back to the master flow.”

❖REFERENCED FLOW:
The flow that is launched using the Subflow elementis referred to as the referenced flow.

❖MASTER FLOW:
The flow that contains the subflow is referred to as the master flow.

❖INPUT VALUES:
Input variables in the referenced flow can be defined in the Set Input Values option of the subflow element

❖OUTPUT VALUES:
Output variables from the referenced flow can be stored in a variable and used throughout the flow.
*****

Subflows can be reused and/or used to split a complex automation process into multiple flow operations and reduce the overall complexity of the master flow.

Subflows are supported in screen flows, schedule-triggered flows, autolaunched (no-trigger) flows, and record-triggered flows.

40
Q

Flow Elements UI

A

Screen:
Logic:UI
Description:
The Screen element is used to collect information from users who run the flow or show them some information.

Example:
Collecting caseinformationfrom a customer

Assignment
Type:Logic
Description:
The Assignment element can be used to set values in variables, collectionvariables, recordvariables, recordcollectionvariables, and globalvariables.

Example: Assigning a field value based on a customer’s answers

Decision
Type: Logic

Description:
The Decision element performs the function of an if-then statement by evaluating a set of conditions and routing users based on the outcomes of those conditions.

Example:
Upselling or cross-selling based on the type of customer

Pause
Type:Logic

Description:
The Pause element is used to pause the flow interview based on conditions and resume it when a specified time occurs or a platform event message is received.

Example:
Pausing a flow when the account rating is ‘Hot’

Loop
Type:Logic

Description:
The Loop element allows iterating over items in a collection variable and temporarily storing each item in a loop variable.

Example:
Looping through child records to sum total hours spent on a project

Collection Sort
Type:Logic
Description:
The Collection Sort element can be used to sort and limit data in a collection.

Example:
Displaying the top 10 opportunities based on the Amount in descending order.

Collection Filter
Type: Logic

Description: The Collection Filter element can be used to generate a new collection consisting only of data that meet defined criteria in an existing collection.

Example: Filtering an existing collection to be used in a choice setcomponent of a screen flow.

41
Q

How to Start a Flow

A

Quick Action
❖Lightning Page
❖Custom Button
❖Custom Link
❖Visualforce Page
❖When a record is ‘created’, ‘updated’, ‘created or updated’,or ‘deleted’
❖Apex
❖Process Builder ❖Custom Tab
❖Flow URL
❖Object-Specific Action
❖Platform Event
❖Scheduled

42
Q

Launching a Flow when a Record change (Record Triggering Flow)

Can it be launched and what’s the process

A

“The following configuration options are available when choosing to create a record-triggered flow”

Select the object associated with the triggering record

Select the type of record change that will trigger the flow

Specify a criteria for the record

Specify whether the flow should run before or after the record change

A record-triggered flow can be launched before/after a record is created/updated, or before a record is deleted.

43
Q

Running Record Triggering Flow
Whencan it be run?

A

record-triggered flow can be configured to run every time or only when the triggering record is updated to meet the criteria specified in the entry conditions.

44
Q

Record-Triggered Flow Entry Conditions

A

“Flow Builder provides different options for building the criteria (or none at all) that should be met in order to invoke the record-triggered flow.”

-No criteria is required
-Conditions must be satisfied based on record field values
-Formula must return true

45
Q

Scheduled Paths (RTF)

A

“A scheduled path can be defined to execute a part of the flow at a dynamically scheduled time.”

-SCHEDULED TIME:
The scheduled time can be based on when the record is created or updated or on a field value on the record.

-SYSTEM CONTEXT:
Scheduled paths run in system context and can access and modify all data.

-MONITORING:
The Time-Based Workflow page in Setup can be used to monitor the scheduled paths that are queued to run.

46
Q

Asynchronous Paths (RTF)
What is it
When should you use it
What type of error can be avoided
Does it run continually in the background?

A

can be used to perform an operation that is executed asynchronously and does not impact the execution of the original triggered transaction.”

LONG-RUNNING:
A process that requires a long time to complete can be executed asynchronously.

-BACKGROUND-RUNNING:
Asynchronous operations run on its own time in the background.

-MIXED DML ERROR:
A mixed DML error can be avoided by running an operation asynchronously.

47
Q

Asynchronous Path Configuration
How do you enable it in a RTF
When should you run it?

A

To include an asynchronous path in a record-triggered flow, the option can be enabled when selecting the Actions and Related Records in the Start configuration window.

In order to run a path asynchronously, the flow should be configured to run only when a record is updated to meet a criteria. Alternatively, the Is Changed operator should be used in a condition.*

48
Q

What’s Record Prior?

When is the Prior Values of a Record in a RTF ready to run?

A

“In a record-triggered flow, the field values of the record before it triggered the flow can be accessed using the $Record__Prior global variable.”

The $Record__Prior global variable is available in a record-triggered flow that is configured to run when a record is updated, or when a record is created or updated

49
Q

Debugging Flow

A

“Flow can be debugg using the Debug option”

-Flow Builder allows testing and troubleshooting flows, including scheduled flows, using the ‘Debug’ option. The flow determines whether one can debug on the canvas or see only the debug details.
Autolaunched flows are debugged on the canvas but screen flows are debugged in the debug details

50
Q

Debugging RTF

A

A flow can be run as another user while debugging in a sandbox org.
To enable this feature, one can select the ‘Let admins debug flows as other users’ checkbox in ‘Process Automation Settings’.
When debugging the flow, ‘Run flow as another user’ can be selected in the Debug options, and a user can be selected.

-In a record-triggered flow, a debug option can be selected to

51
Q

Debugging RTF pt 2

A

TRIGGERING RECORD:
A triggering record can be selected for the debug run, which triggers the flow as if that record is created, updated, or deleted.

FLOW RUN OPTIONS:
Two options are available for the debug run behavior of a record-triggered flow. It can be run as if the record is created or updated.

52
Q

Migrate to FLow

A

“convert a workflow rule to a corresponding record-triggered flow”

-The Migrate to Flow tool also supports converting record-change processes into their corresponding record-triggered flows.

Only the following action types in Process Builder are supported: Record update, Record create, Invoke flow, Invoke Apex, and Email alert.

If a process contains a scheduled action, it will be migrated as a scheduled path in the flow.*

52
Q

Flow Trigger Explorer

A

“Flow Trigger Explorer is a tool for viewing record-triggered flows that are associated with a specified object and identifying how or when they are triggered based on a record change. The tool allows to

  1. SPECIFY THE OBJECT:
    Select the standard or custom object that is associated with the record-triggered flows
  2. SPECIFY THE TRIGGER TYPE: Load the flows that run when a record is either created, updated, or deleted.
  3. VIEW BEFORE-SAVE FLOWS:
    Determine which flows that run before the record change

4.VIEW AFTER-SAVE FLOWS:
Determine which flows that run after the record change

  1. OPEN IN FLOW BUILDER:
    Open the flow in Flow Builder in a new tab by clicking on the flow label

6.VIEW ASYNCHRONOUS PATHS:
Determine the triggered flows that contain asynchronous paths

  1. VIEW FLOW STATUS:
    Determine whether the status of a flow is active or inactive
  2. MANAGE STATUS OR VERSION:
    Choose which version of a flow to activate or deactivate
53
Q

What is a screen flow?

A

A screen-based flow is a flow that uses the Screen element, which is used to capture user input or display information. Screen flows can be launched from a user interface, for example, via a button, link, or page.

54
Q

What is an Autolaunched flow

A

❖An autolaunched flow runs in the background when it performs its actions. There are several types of autolaunched flows and they can be launched, for example, from a record change, platform event, schedule, or they can be invoked from a process, Apex, or even manually.

55
Q

Consideration of Scheduled Path

A

These considerations apply to record-triggered flows that have scheduled paths.

The maximum scheduled-path interviews per 24 hours is 250,000, or the number of user licenses in your org multiplied by 200, whichever is greater. One interview is created for each executed scheduled path on a record-triggered flow. Paths that run immediately don’t count toward this limit.

If the flow can be triggered by record updates with Time Source set to be based on a field value such as dueDate, consider this behavior. If Time Source is set to a future time and condition requirements are met, the scheduled path executes at that new time regardless of whether the scheduled path already executed. You can use this record trigger configuration to schedule recurring actions on a record by updating the record’s date field.

Scheduled paths and asynchronous paths are batched differently. In a scheduled path, all the records that meet the conditions and are scheduled to be processed in the same minute are grouped up to the batch size into one batch.

-Synchronous Apex transactions invoked by an asynchronous flow contribute to synchronous per-transaction Apex limits. Asynchronous flows include scheduled flows and flows with scheduled or asynchronous paths.

56
Q

Consideration for fast field updates

Howdo you activatre an autolaunched flow that has a trigger?

A

The flow can’t perform actions other than updating the triggering record’s field values.

The flow can’t update values in records that are related to the triggering record.
Only these elements are supported: Assignment, Decision, Get Records, and Loop.

The View All Data permission is required to activate an autolaunched flow that has a trigger.