Salesforce Flows (Q&A)
Lightning Flow
30
&
Interview
Trigger
Scenarios
Questions & Answers
Sanjay Gupta Tech School
https://StudySalesforce.com
Salesforce
Q : What is Process Automation? Interview
Preparation
A:
● Process Automation provides declarative tools to do automation in
Salesforce.
○ Workflow Rule
○ Process builder
○ Flows
○ Approval Process
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : What is Flow Builder? Interview
Preparation
A:
● Provides declarative process automation.
● Lightning flow provides this point and click automation tool
i.e. Flow Builder.
● Lightning Flow is the name of product.
● Process Builder and Flow Builder are name of the tools.
○ Use Process Builder to create Processes.
○ Use Flow Builder to create Flows.
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Type of Flows? Interview
Preparation
A:
● Screen Flow
● Record - Triggered Flow
● Schedule - Triggered Flow
● Platform Event - Triggered Flow
● Autolaunched Flow
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Flow Elements? Interview
Preparation
A:
● Screen
● Action
● Subflow
● Assignment
● Decision
● Loop
● Collection Sort
● Collection Filter
● Create Record
● Get Record
● Update Record
● Delete Record
● Roll Back Records
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Flow Resources? Interview
Preparation
A:
● Variable
● Constant
● Formula
● Text Template
● Choice
● Collection Choice Set
● Record Choice Set
● Picklist Choice Set
● Stage
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Screen Flow? Interview
Preparation
A:
● It guides user through a business process
● It can be launched through
○ Lightning Page,
○ Experience Cloud Sites,
○ Quick Actions
○ and more
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Record - Triggered Flow? Interview
Preparation
A:
● Launches when a Record is
○ Created
○ Updated or
○ Deleted
● This autolaunched flow runs in the background.
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Schedule - Triggered Flow? Interview
Preparation
A:
● Launches at a specified time and frequency for each record in a
batch.
● This autolaunched flow also runs in the background.
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Platform Event - Triggered Flow? Interview
Preparation
A:
● Launched when a platform event message is received.
● This autolaunched flow also runs in the background.
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Autolaunched Flow? Interview
Preparation
A:
● It is invoked by
○ Apex
○ Processes
○ REST API
○ and more…
● This autolaunched flow also runs in the background.
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : What to Debug a Flow? Interview
Preparation
A:
● Helps to test the flow execution before activating it.
● It shows step by step results and shows errors (if any).
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Version Control? Interview
Preparation
A:
● Each time you update something in flow a new version is
created.
● After creating new version we need to activate the flow to
run.
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Can we use Lightning Component in Screen Flow? Interview
Preparation
A:
● Yes
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Can we Call Apex class through Flow? Interview
Preparation
A:
● Yes
Sanjay Gupta Tech School http://StudySalesforce.com
Q : Which annotation we use with apex class Salesforce
Interview
Preparation
method when we call Apex class through Flow?
A:
● @InvocableMethod
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : How to Call a Flow into another Flow? Interview
Preparation
A:
● Sub Flow Element
○ Screen Flow can call another screen flow as sub flow.
○ Record Triggered Flow can call another Autolaunched flow as sub
flow.
Sanjay Gupta Tech School http://StudySalesforce.com
Q : Some Important Actions that can be done Salesforce
Interview
Preparation
through Flow?
A:
● Post to Chatter
● Send Email or Email Alert
● Send Notification
● Call Sub Flow
● Call Apex Class
● Call Approval Process
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : $Record Vs $Record__Prior? Interview
Preparation
A:
● Both are global variables available in Flow.
● $Record is available while record is created, updated or deleted.
● $Record__Prior is available only when record is updated.
● $Record : Provides the values of the record through which flow is
triggered.
● $Record__Prior : Provides old values of the record through which
flow is triggered.
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : What happens when flow fails? Interview
Preparation
A:
● It gives an error message on the UI.
● Also throws an email to the user who last modified it.
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Fast Field Update Vs Actions & Related Records? Interview
Preparation
A:
● Fast Field Update : Update fields on the record that triggers the
flow to run. In this case flow runs before the record is saved to the
database.
● Actions & Related Records: Update any record and perform
actions, like send an email. In this case flow runs after the record is
saved to the database.
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Can records be shared with users through flow? Interview
Preparation
A:
● Yes
● For example, if you want to share account records so in flow you
can create a record of AccountShare object.
Sanjay Gupta Tech School http://StudySalesforce.com
Q : Can we set the order of execution of record Salesforce
Interview
Preparation
triggered flows?
A:
● Yes, through Flow Trigger Explorer
Sanjay Gupta Tech School http://StudySalesforce.com
Q : What are two paths we have in Record Triggered Salesforce
Interview
Preparation
Flow?
A:
● Run Immediately
● Run Asynchronously
Sanjay Gupta Tech School http://StudySalesforce.com
Q : From where we can validate whether Flow is Salesforce
Interview
Preparation
scheduled or not?
A:
● Setup > Scheduled Jobs
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Can we debug a flow as another user? Interview
Preparation
A:
● Yes, We need to enable this setting from Process Automation
Settings.
Sanjay Gupta Tech School http://StudySalesforce.com
Q : What frequency we can set in Schedule Salesforce
Interview
Preparation
Triggered Flow?
A:
● Once
● Daily
● Weekly
Sanjay Gupta Tech School http://StudySalesforce.com
Q : Record Single Variable Vs Record Collection Salesforce
Interview
Preparation
Variable?
A:
● Record Single Variable : Can store information in form of a single
record about specified object.
● Record Collection Variable : Can store information in form of
multiple records about specified object.
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Can we pause and resume a screen flow? Interview
Preparation
A:
● Yes
● You can pause through button present on screens.
● You can resume through Setup > Paused and Failed Flow
Interviews.
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Does Flow support versioning? Interview
Preparation
A:
● Yes, when we update something in flow it always create a new
version.
● We can anytime activate or deactivate any version as per
requirements.
● We can also delete existing versions, if they are not in use anymore.
Sanjay Gupta Tech School http://StudySalesforce.com
Salesforce
Q : Can we deactivate flow anytime? Interview
Preparation
A:
● Yes, we can deactivate flows any time if we don’t want it to run.
Later we can activate as well any version that we want to run
Sanjay Gupta Tech School http://StudySalesforce.com