Free Salesforce Admin Tutorial >

Chapter 9 - Process Automation >

Salesforce Flows

Salesforce Flows

What You’ll Learn

What is a Salesforce Flow? What is a Salesforce Flow?

Types Of Salesforce FlowsTypes Of Salesforce Flows

Overview of Salesforce Flows ToolOverview of Salesforce Flows Tool

What is Salesforce Flows? 

Salesforce Flow is an easy-to-use declarative automation tool that allows you to build complex business automation solutions through point-and-click. 

Through flow, we can create, update and delete records for multiple objects and can perform various actions as well.

Types Of Salesforce Flows

Flows are divided into Two Categories: 

1. Screen Flows

Screen flows are the flows where we have the user interaction like a user can enter values using components such as text, picklist, or display values using components such as display text.

  1. Screen flow can include one or more screens.
  2.  Each screen is made up of one or more screen components. A screen component is a configurable, reusable element added to a screen.
  3. Screen components are available in three categories.
  • Input includes standard components that request information from the user.
  • The display includes standard components that display information to the user.
  • Custom includes components that you or someone else have created. Install them from AppExchange or a third-party library, or work with a developer to build your own.

2. Autolaunched Flows

Autolaunched flows are flows that don’t require user interaction and run in the background.
Autolaunched Flows are distributed into Four sub-categories based on how they trigger:

Types of Autolaunched Flow

1. Record-Triggered Flow

A record-triggered flow will be invoked whenever we create, update, or delete a record of a particular object. Flow can be triggered when:

  • A record is created
  • A record is updated
  • A record is created or updated
  • A record is deleted

In Record Triggered Flow, we can configure when to execute the actions:

  1. Fast Field Updates (Before Save): Update fields on the record that triggers the flow to run. This high-performance flow runs before the record are saved to the database.
  2. Actions and Related Records (After Save): Update any related record and perform actions, like sending an email. This more flexible flow runs after the record is saved to the database.
 2. Schedule-Triggered Flow

A schedule-triggered flow starts at the specified time and frequency for a batch of records. We will not be able to launch a schedule-triggered flow by any other means.
We will be able to schedule flow from Start Date and Time for the following frequencies:

  • Once
  • Daily
  • Weekly
3. Autolaunched Flow (Invokable Flow)

Autolaunched flow does not require any user interaction and it can be automatically launched through the apex, process builder, APIs, and any other flow.

4. Platform Event-Triggered Flow

A platform event-triggered flow will be executed whenever there will be an event occurring in Salesforce. This flow runs in the background without any interaction with the user. 

Salesforce Admin Training

Overview Of Salesforce Flows Tool

Salesforce Flows tool

1. Button Bar

Manage your flow as you build it.

  1. Select Elements: After clicking the ‘Select Elements’ button, click on each element that you want to select.
  2. Copy Elements: Clicking the ‘Copy Element’ button lets you copy a selected element or multiple selected elements to the clipboard.
  3. Paste Elements: Clicking the ‘Paste Element’ button lets you paste a selected element or multiple selected elements to the canvas.
  4. Undo/ Redo Element: To undo a change to your flow, click. To redo a change, click.
  5. View Properties: To access the flow version’s properties, such as context and API version.
  6. Layout: Choose between Auto-Layout or Free-Form. Auto-Layout is the default layout for all new flows.
  7. Warning/Error: These icons are displayed, if the flow has warnings or errors.
  8.  Run Button:  To run the most recent save of the flow version that’s open.
  9. Version Info: Next to the Run button, you can see the version’s active or inactive status and when it was last saved.
  10. Debug button: To debug the most recent save of the flow version that’s open. Define values for input variables, roll back changes so debugging doesn’t impact data, view debug details about how the flow runs, and use those details to troubleshoot errors.
  11. Activate Button: To make the current flow version available to your users.
  12.  Save button: To save your flow
  13. Save As button: To save it as a new version or a new flow.

2. Toolbox

  1. Manager tab: To create resources, or to view a list of all elements and resources and their details.
  2. View resource and element details:  To view resource and element details such as type, outputs, usage, and incoming go-to connections.
  3. Elements tab: To add elements in free form.

3. Canvas

Build a flow on the canvas. As you add elements to the canvas, you can see a diagram of your flow.

4. Start Element

The Start element represents the start of the flow. The flow executes the elements in order following the Start element. In Record-Triggered flows and Schedule-Triggered flows, configure the Start element to indicate when you want the flow to start running.

5. Elements

  1. Connector: Click on it, to add elements in auto-layout, and then we can select an element, such as Create Records and Update Records.
  2. To add elements in free form, in the Elements tab in the Toolbox, click and drag an element onto the canvas and connect it to the rest of the flow.
  3. Element: Click on the Element, To edit or see options for it.

6. Zoom Button Bar

Use this button bar to zoom in and out of the flow.

Tools Available in Salesforcec Flows

There are 3 main tools of any Flow: 

1. Elements

They are the individual building blocks of the Flow. These perform logical actions such as assignments, decisions, or loops. There are also data elements that will query the database or commit record changes. Some commonly used elements are:

A. Interaction

  1. Screen Element: This element is only available in a screen flow and it allows you to show any kind of information to the user or if you want to collect any information from the user.
  2. Action Element: This element is used to perform any action in the flow which can be either Standard Actions (i.e Email Alerts, Approval) or Custom Actions (i.e Apex Actions).
  3.  Subflow: This element allows us to call another flow from the current flow. It helps in creating the same flow again and again.

B. Logic Elements

  1.  Decisions: It allows you to put conditions in the flow through which you can perform different actions on the basis of its outcome.
  2. Assignments: It is used to assign value to a variable.
  3. Loops: It is used to iterate collections of values in the flow.

C. Data Elements

  1. Create Records: It is an element that is used to create records from the flow. Through this element, we can create one or multiple records.
  2. Update Records: By using IDs and field values we can update the records through flow.
  3. Get Records: It is an element that is used to fetch records in the flow from the database.
  4. Delete Records: It is an element that is used to delete records in the flow from the database.

2.  Connectors

They determine the direction of flow implying which element leads to which.

3. Resources

Each resource represents a value that you can reference throughout the flow. Here is the list of resources that we can create:

  1. Variable: Store a value that can be changed throughout the flow.
  2. Constant: Store a fixed value that you can use throughout a flow.
  3. Formula: Calculate a value when the formula is used in the flow.
  4. Text Template: Store text that can be changed and used throughout the flow. To format the text, use HTML tags.
  5. Choice: Create a choice option to use in a screen component, such as a Radio Button or Multi-Select Picklist component.
  6. Record Choice Set: Generate a set of choices by using a filtered list of records.
  7. Picklist Choice Set: Generate a set of choices by using the values of a picklist or multi-select picklist field.
  8. Stage: Represent the user’s progress throughout the flow. To identify which stages are relevant to the user throughout the flow, assign the stages to the stage system variables.
  1. If the flow version contains Subflow elements, the active version of its referenced flow is executed. If the referenced flow has no active version, then the Subflow element runs the latest version of its referenced flow.
  2. The Actions and Related Records option is not available in case of deletion.
  3. Only one version of each flow can be active at a time.
  4. Some resources, such as global constants and global variables, are provided by the system.
Salesforce certifications

Download Study Material

Get access to exclusive study material for Salesforce Certification and ace your exams!

Download Now

Our Salesforce Certification Courses

Hey there! Glad you made it through our Salesforce Admin Training for beginners . But wait! We've got some high-in-demand Salesforce courses for you to take your Salesforce skills to the next level, making you a desired professional in the Salesforce job market.

Post a Comment

Your email address will not be published. Required fields are marked *