SALESFORCE FLOWS
What is a Flow in Salesforce?
In Salesforce, a flow is an application that automates complex business processes. Simply put, it collects data and then does something with that data.
Flow Builder is the declarative interface used to build individual flows. Flow Builder can be used to build code-like logic without using a programming language.
Flows fall into five categories:
When/why should I use a flow?
To answer this question, we really need to look into what automation is needed. In most cases, the type of automation to use for a specific process is determined by evaluating where the data for the processes originates from and where it needs to go. Consider whether what you need to accomplish is best handled by a flow, workflow field update, or a process.
When should I not use a flow?
Generally, you should not use a flow in the following situations:
How do I create a flow in Salesforce?
After you build a flow, make sure that it’s working correctly by thoroughly testing it. Once you’ve tested it, activate the flow. You’re now ready to distribute the flow to users.
Pro tip: Flows can be executed in several ways, depending on who the flow is designed for. Internal users, external users, or systems can run a flow, or a flow can be deployed for another organization. Just remember, no matter how you execute it…you’ve got to go with the flow.
Testing Flows
To test a flow, click the Debug button on the canvas, input your variables, and click Run. Then run through the flow to make sure it works properly. This process is especially helpful with screen flows.
What are the different Flow Types in Salesforce?
Auto-Launched Flows with No Flow Trigger
These flows don’t require user interaction, and they don’t support screens, local actions, choices, or choice sets. The available distribution methods available are:
Recommended by LinkedIn
Auto-Launched Flows with a Schedule Trigger
These flows only run from a schedule that the user sets. They don’t support user interaction, screens, local actions, choices, or choice sets. The available distribution methods are:
Screen Flows
Screen flows require user interaction because they include screens, local actions, steps, choices, or dynamic choices. Screen flows don’t support Pause elements. A schedule-triggered flow only runs at the scheduled time and frequency.
Auto-Launched Flows with a Record Trigger
These flows are designed to quickly make simple changes to a record when the record is created, updated, or deleted. They can also be configured to make those changes either before or after the record has been saved to the database. In a before-save flow, the supported elements are Assignment, Decision, Get Records, and Loop. After-save flows have access to all flow capabilities, but they cannot launch sub flows.
User Provisioning Flow
User provisioning flows provision users for third-party services. You could use this flow type to customize the user provisioning configuration for a connected app, linking Salesforce users with their Google Apps accounts. A user provisioning flow can only be implemented by associating it with a connected app when running the User Provisioning Wizard.
Field Service Mobile Flow
These flows require user interaction because they have one or more screens.
Field Service Embedded Flow
These flows require user interaction because they have one or more screens.
Contact Request Flow
These flows require user interaction because they have one or more screens. Use one of the following Experience Builder components to add this flow:
Common Mistakes When Designing Flows
We see a lot of flows here at Kicksaw, and we build even more of them. Here are some common and avoidable mistakes we’ve identified:
#SalesforceDeveloper #SalesforceFlows #ZensarTechnologies