We know that Salesforce is retiring WFRs and Process Builder and recommending Salesforce Flows for all behind-the-scenes automation needs.

As a result, it has become essential to learn and master Flows for building automation solutions.

So, in this blog today, we will share an overview of Salesforce Flows and the best practices to use it, in this quick guide to learning Salesforce Flows.

So, let’s begin!

What is Salesforce Flows

Flow is the most powerful automation tool provided by Salesforce. It is an automated application that captures and records all data and takes necessary actions accordingly in your Salesforce org or an external system.

Salesforce Flow enables building complex business solutions using clicks, not code. It can be triggered for record insert, update and record delete and it can be run for both after and before events.

Types of Flows

Salesforce Flow provides two types of flows: Screen flows and Auto launched flows.

Screen Flow

A Screen Flow is called through a button or action, or displayed in a Lightning Page or the Utility Bar, and appears as a screen for the user to interact with. This cannot be automatically called.

Record-Triggered Flow

This Flow launches when a record is created, updated, or deleted.

Auto launched Flow

These can be called Apex, Process Builder, or another Flow. They can perform actions automatically behind the scenes.

Scheduled-Triggered Flow

It runs automatically on a recurring schedule. It is helpful for tasks that need to be performed daily on a set of records or to handle jobs that run frequently.

Platform Event Flow

These are called when a platform event is received. It is similar to auto-launched flow.

Features Of Flows

Manager Tab

The manager tab displays the existing resources. Each resource represents a value that is referenced throughout the flow. Some of the resources are as below-

  • Variables: Variables are used to store data to use in the flow. The variables can be of type Text, Number, Record, Dates, Currency, Boolean, Picklist, or Object record.
  • Collections: Collections are used to store a list of variables. They are used to process multiple records at a time.
  • Constants: Constants are values you set once and never change. Constants are recommended when the flow needs to reference the same value multiple times.
  • Formulas: It displays a dynamic value depending on other values within your Flow. If you need to calculate a future date based on when the Flow was run, a Formula will be helpful.
  • Choices: Choices are used in Screen flows to show options to the user.

Elements Tab

Elements tab displays Interaction, Logic, and Data elements available for the flow. Each element is an action the flow can execute.

Interaction Element includes –

  • Screen: This element is available only in Screen Flows. The screen can be used to display information or can be used to collect data from the user.
  • Actions: An Action element allows you to pass data through to a pre-existing standard or custom action such as Send Email, a Quick Create, or a custom Apex action.
  • Subflow: A Subflow element allows you to call another Flow within your current Flow – this means that if you have another complex Flow set up, you don’t need to replicate the logic in your new Flow.

Logic Elements include-

  • Decisions: Decisions split the flow depending on the data that’s being sent through the decision element.
  • Assignments: Assignments allow you to give a value to a variable.
  • Loops: Loops allow you to handle multiple variables at once using collections.

Data Elements allow the flows to fetch, create, update or delete records in the database. The elements include

  • Get Record,
  • Create Record,
  • Update Record,
  • Delete Record.

Whilst Get Record is used to fetch records from the database, Create Record, Update Record, and Delete Record are used to activate the data in the database.

Connectors decide the available paths that a flow can take at run time. Various elements in the flow are connected using the connectors available. Some types of connectors are Unlabeled, Decision Outcome, Fault, Pause, For each, etc.

Best Practices For Flows

  • Plan out your flow before you start building.

  • Build your flows in a test environment—like a sandbox or Developer Edition org.

  • Never hard-code Salesforce IDs.

  • Wait until the end of the flow to make changes to the database.

  • Control when running users can navigate backward.

  • Provide an error handler.

  • Save early and often.

  • Restrict data access via profiles and permission sets.

  • Control data access with the Subflow element.

  • Test as many permutations of your flow as you possibly can.

  • Avoid accessing external objects after DML operations in a transaction.

General Limits For Flows

PER-ORG LIMIT ESSENTIALS OR PROFESSIONAL EDITIONS ENTERPRISE, UNLIMITED, PERFORMANCE, OR DEVELOPER EDITIONS
Versions per flow 50 50
Executed elements at runtime per flow 2,000 2,000
Active flows per flow type 5 4,000
Flow interviews that are resumed per hour or groups of scheduled actions from processes that are executed per hour based on a specific time 1,000 1,000
The combined total of this automation that starts or resume is based on a record’s field value.
  • Resume events that are defined in active flows
  • Groups of scheduled actions that are defined in active processes
  • Time triggers that are defined in active workflow rules
  • Inactive flow interviews that are resumed
20,000 20,000
Schedule-triggered flow interviews per 24 hours 250,000, or the number of user licenses in your org multiplied by 200, whichever is greater

Conclusion

We hope you find this quick guide useful. If you have liked the blog or have any suggestions, do not hesitate to reach out to us at HIC Global Solutions. Catch you in the next one, stay tuned!

Share This Blog
Related Articles

Salesforce CPQ (Configure, Price, Quote) is a powerful tool that enables businesses to streamline their quoting process by providing advanced configuration options. Among its many features, Multi-Dimensional Quoting (MDQ) stands out as a powerful capability that allows sales teams to create more detailed and flexible quotes for complex products. In this blog, we’ll dive into […]

Read More
Dynamic Search Filters in Salesforce CPQ

Salesforce CPQ (Configure, Price, Quote) is a powerful tool that allows sales teams to generate quotes with speed and accuracy. One of the key features that makes CPQ so flexible is its dynamic search filter capability. In this blog, we’ll explore how you can create dynamic search filters in Salesforce CPQ to make your quoting […]

Read More
How to Create Quote Templates Customization Methods

The objective after completing a quote is usually to produce a precise and expert quote document for clients. However, without the proper procedures in place, quoting can be difficult, error-prone, and time-consuming. Salesforce CPQ (Configure, Price, Quote) streamlines the process and improves quote accuracy by assisting with the setup and administration of quotation papers. By […]

Read More
Boost Performance with a Robust Trigger Framework in Salesforce

Boost Performance with a Robust Trigger Framework in Salesforce If you want to make sure of scalability and performance in the Salesforce development, managing Apex triggers is a must. With a trigger framework, you get a structured approach to organizing and maintaining trigger logic. This way, developers can follow the best practices while maintaining the […]

Read More

When it comes to Salesforce development, efficiently managing and deploying metadata is important to maintain streamlined operations. With the help of Unlocked Package, you can easily achieve this. It is specially designed for business’s internal use and allows businesses to develop and manage modular applications. This blog will walk you through the importance of Unlocked […]

Read More
How Salesforce Data Cloud Streamlines Data Management

The Data Cloud integrates your company’s data onto Salesforce’s Einstein 1 Platform. It provides each team with a comprehensive customer view for a better experience. The Data Cloud consolidates disparate data sources into a unified model, facilitating easy access and comprehension. It encompasses various data types such as web engagement and more from both internal […]

Read More
Our Location worldwide
Indian Flag India
3rd Floor, A-10, Pegasus Tower, Sector 68, Noida, Uttar Pradesh 201301 +91-1203117884
United States of America Flag USA
333 West Brown Deer Road Unit G – 366 Milwaukee WI, USA 53217 +1(262) 310-7818
United Kingdom Flag UK
7 Bell Yard, London, WC2A 2JR +44 20 3239 9428
Canada Canada
HIC Global Solutions INC
43 Lafferty Lane, Richmond Hill, L4C 3N8, CA +1(262) 310-7818