Top Salesforce Flow Interview Questions and Answers
Q11. When Does a Flow’s Transaction Start?
Depending on how the flow was distributed, a transaction that runs an interview for that flow starts in different ways. The below table list some of the events:
Distribution Method | Transaction Starts when … |
---|---|
Process Builder | A record is created or updated. |
Flow URL | The URL is accessed. |
Custom button or link | The button or link is clicked. |
Visualforce page | The page is accessed. |
REST API (Custom Actions or Flows resource) | When the REST call is made. Depending on how the REST call is implemented, the limits can be shared with other operations. |
Q12. When does a Flow’s Transaction End?
When a Flow’s transaction ends depends on flow elements it contains and how flow started. The Flow’s transaction ends when:
- A Screen, Local Action, or Pause element is executed
- The order of execution has completed—if the flow was triggered when a record was created or updated
- All the interviews in the transaction have finished
Q13. Explain some of the Flow Elements.
Each Flow Element represents an action that the flow can execute. Flow builder provides following Elements
Category | Element Name | Description |
---|---|---|
Interaction | Screen | Collect information from users who run the flow or show them some information. |
Interaction | Action | Perform an action outside of flow. |
Interaction | Subflow | Launch another flow that is available in your org. |
Logic | Assignment | Set variable values. |
Logic | Decision | Create paths for the flow to take based on conditions you set |
Logic | Loop | Iterate over a collection of values or records. |
Logic | Collection Sort | Sort items in a collection. |
Logic | Collection Filter | Without changing the original collection, remove items based on a set of conditions. |
Data | Create Records | Create Salesforce records using values from the flow. |
Data | Update Records | Update Salesforce records using values from the flow. |
Data | Get Records | Find Salesforce records and store their field values to use later in the flow. |
Data | Delete Records | Delete Salesforce records. |
Data | Rollback Records | Cancel pending record changes. |
Q14. What are Flow Connectors?
Flow Connectors determine the available paths that a flow can take at run time. On the canvas in Flow Builder, a connector looks like an arrow that points from one element to another.
LABEL | EXAMPLE | DESCRIPTION |
---|---|---|
Unlabeled | Identifies which element to execute next. | |
Decision Outcome | Identifies which element to execute when the criteria of a Decision outcome are met. | |
Pause Configuration Label | Identifies which element to execute when an event that’s defined in a Pause element occurs. | |
Fault | Identifies which element to execute when the previous element results in an error. | |
For each item | Identifies the first element to execute for each iteration of a Loop element. | |
After last item | Identifies which element to execute after a Loop element finishes iterating through a collection. | |
Go To (Beta) | Identifies which element to go to and execute next. |
Q15. How can you call a Flow from a Quick Action?
- Create a Flow and Activate it
- Go to Object Manager, select Object (Example Account)
- In Buttons, Links, and Actions click on New Action
- Select Action Type: Flow
- Select the Flow created in Step 1
- Provide Label and Name and Click on Save
- Add the newly created Quick Action to the Page Layout
Q16. How can you call a Flow from related list button in Salesforce Lightning?
Step 1. Create a Flow and Activate it
Step 2. Copy the Flow URL
Step 3. Create a List button
Step 4. Add the newly created button to the Related list on the Page Layout
Q17. What is Salesforce Flow Orchestrator?
Read More: Salesforce Flow Orchestrator Explained
Q18. What are some of the Salesforce Flow Best Practices?
Read More: Salesforce Flow Best Practices
Q19. List some of the new Flow Features introduced in Salesforce Spring ’22 Release.
Read More: Salesforce Spring ’22 Release Flow Top 10 New Features
Q20. What is Salesforce Flow Trigger Explorer?
Salesforce Flow Trigger Explorer shows all of the flows that are associated with a specified object and that run when a record is created, updated, or deleted. You can access Flow Trigger Explorer via Setup -> Flows -> Flow Trigger Explorer.