Salesforce Flow

  • Share this:

Salesforce flow helps you automate complex business processes. Flows let you work smarter, not harder, by saving your users time and ensuring the required tasks are accomplished correctly. Flow extends declarative processes similar to that of workflow and process builders by providing the ability to automate the creation, updating and deletion of records that require more complex logic.

Why do we use Salesforce Flows?

Flow gives us the ability to design and build more complex functionality without writing a single line of code. As custom development requires apex classes or apex triggers, which must be deployed from the sandbox environment to the production environment, we need to write test classes. It may sometimes fail while moving from one environment to another is not the case with Salesforce Flows.

Types of Flows 

Flows are of five types:

  • Screen Flow

    • This flow works as a UI element and requires input from the user. This flow is either launched as an action or used as an element on a lightning page.

  • Auto launched Flow

    • This flow runs automatically. This flow has to be invoked from a process builder or from an apex class or from a record change, or from a platform event.

  • Schedule Triggered Flow

    • This flow launches at a specified time as scheduled for each record in a batch.

  • Record Triggered Flow

    • This auto launched flow runs in the background whenever a record is created, updated or deleted


  • Platform Event Triggered Flow

    • This flow gets triggered when a platform event message is received.

Flow Elements and Resources

Flows Elements

A salesflow is built by using a flow builder. This flow builder provides point and click functionality to build our flow. Flow builder consists of Elements that act as the building block of our flow. Elements are of 3 types :

  • Interaction

    • Screen element

      • Screen elements are only available for screen flows. This enables the user to interact with the screen, and it accepts input from the user.

    • Action

      •  Perform an action outside of the flow. This includes sending an email alert, post to chatter, submit for approval.

  • Sub Flow

    • This element launches another flow that can be used in the existing flow.

  • Logic

  • Decision

    • This element acts as an if else statement used in the apex. It is used to evaluate a set of conditions.

  • Assignment

    • This element is used to set values in a variable.

  • Loop

    • Loop element is basically used to perform iteration.

  • Data

  • Create Records

    • It is used to create records using values from the flow.

  • Update Records

    • It is used to update records using values from the flow.

  • Get Records

    • Find records and store their field values to use later in the flow.

  • Delete Records

    • It is used to delete records.

Flow Resources

A Flow resource is a representation; it represents a value that you can use throughout the flow. There are different types of resources available such as Variable, Constant, Formula, Text Template, Choice, Record Choice Set, Picklist Choice Set, Stage.

As other automation tools will be depreciating in the coming years, Salesforce Flow will emerge as a tool that everyone will use for automation.


Sagar Kuckreja

Sagar Kuckreja

My name is Sagar Kuckreja. I have completed my graduation in Computer Science & Engineering . I love to share the knowledge and help the community.