Flow Flashcards
(53 cards)
5 Types of Flows
- Screen
- Autolaunched
- Schedule-Triggered
- Record-Triggered
- Platform Event-Triggered
Record Triggered Flow
Launched when a record is created, updated or deleted. This flow runs in the background.
Platform Event-Triggered Flow
Launches when a platform event message is received.
The auto-launched flow runs in the background.
Screen Flow
Guides users through a business process that’s launched from lightning pages, communities, quick actions and more.
You use flow builder to create an interaction that presents info and asks your users questions.
Schedule-Triggered Flow
Launches at a particular time and frequency for each record in a batch. This autolaunched flow runs in the background.
Auto launched Flow (No Trigger)
Launches when invoked by Apex, processes, REST API, and more. This autolaunched flow runs in the background.
Use Flow Builder to create automation that runs when a button is clicked. These can also be run by other automation processes.
Record-Triggered Flow
Launches when a record is created, updated, or deleted. This autolaunched flow runs in the background.
3 Types of Flow Elements
- Interaction
- Logic
- Data

Interaction Parts of Flow
- Screen
- Action
- Subflow
Logic Parts of Flow include (3)
- Assignment
- Decision
- Loop
Data Parts of Flow include (4)
- Create Records
- Update Records
- Get Records
- Delete Records
4 Types of Flow Resources
- Choices
- Formulas
- Record (Single) Variables
- Variables

Variables
Variables are just a place to temporarily store some information. They have a name and store a value. Normally they just store one piece of information like the variable “v_temp” that can store the number 75 as it’s value. We can have dates, text, percentages and other types for our variables.
The important thing about variables is in the name (the value can vary or change). We may add values to the variable or change it’s value part way through our flow.

Collection Variables
In Flow, we can also have a collection variable.
One that contains many values. eg “c_temp”

Record Variables
In Flow, we can also define a variable that is of type record and we can store an entire record in the variable.
For example, we may have a record variable named “r_contact” which can store a contact record. These are used in screen flows with loops that collect data to create a number of new records.

Record Collection Variables
A collection of records can be stored in a record collection variable. Our collection of contacts could be named: “rc_contacts” and contain a number of contact records.
When we use a record variable like in the example above, we add each record variable to our record collection variable (inside the loop) and then when finished adding records create the records from the collection (outside the loop).

Constant
A constant is like a variable but its value cannot be changed. The value stays the same throughout the flow.
The value for “pi” is 3.14 (approx) and never changes. This is an example of a constant.

Formula
There is a large range of formulas that can be used in Flows. From simple math formulas to complex string handling formulas.
v_outsidetemp - v_windchill could be a formula used to calculate the “feels like temperature”.
Flow has some restrictions on the type of formulas, not all Salesforce formulas are currently supported.
The full list of Salesforce functions is here: Formula Operators and Functions
The restrictions are listed here: Flow Formula Considerations
Not supported Formulas for Flow
- GETRECORDIDS
- IMAGE
- INCLUDE
- ISCHANGED
- ISNEW
- PARENTGROUPVAL
- PREVGROUPVAL
- PRIORVALUE
- REQUIRE SCRIPT
- TIMENOW
- TIMEVALUE
- VLOOKUP
Text Template
Text templates are a special type, a block of text.
These are ideal to format the message body of an email and you can also include merge fields in the text block.
Choice
Choices are used when you want to present the user with choices eg: Yes/No/Maybe.
Record Choice Set
Choices can also be populated from a set of records.
Perhaps you want to have a picklist where the user selects a record to relate to the existing one. eg Account/Contact.
Picklist Choice Set
A final type of choice is from an existing picklist.
If you want to present a picklist of choices and have an existing picklist on the record you are working with you can directly reference that picklist.
The advantage of this method is if you later add values or remove values from the picklist, your choices will be automatically updated.
Stage
The final resource type is the stage.
This refers to the stage of the flow and you can define this how you want.
Perhaps you have a 5-page flow and you want to indicate to the user how far through the flow they are, you can reference the stage.
This is a little-used resource but you can get more information here:
Show Users Progress Through a Flow with Stages





