Loading
Prepare for Email to Become the Default Login ExperienceRead More
Automate Your Business Processes with Salesforce Flow
Creating Flow Formulas with Flow Formula Builder

Creating Flow Formulas with Flow Formula Builder

You can use Flow Formula Builder to build an expression in Formula-type resources or in the Collection Filter or Start elements of a record-triggered flow. To build your expression, select from a list of functions and operators. To catch errors as you work, check the formula syntax for each expression.

Required Editions

View supported editions.
User Permissions Needed
To open, edit, create, activate or deactivate a flow using all flow types, elements, and features available in Flow Builder, including Einstein and Agentforce for Flow: Manage Flow
Note
Note You don't need to be an admin to have the Manage Flow permission. Ask your admin to add it to your profile or permission set.
Example
Example
  • Automate a process for records where the closed date changed for US-based accounts that have more than 100 employees.
  • Automate a process for new case records for Premier support accounts in North America and Europe that have revenue of over US$1,000,000.

Create Formulas in the Flow Start Element with Formula Builder

You can use Flow Formula Builder to build an expression in the Start element of a Record-triggered Flow. To build your expression, select from a list of functions and operators. To catch errors as you work, check the formula syntax for each expression.

  1. Edit the Start element in a Record-Triggered flow.
  2. Select the object with records that trigger the flow.
  3. Select when to trigger the flow.
  4. In the Set Entry Conditions section, set Condition Requirements to Formula Evaluates to True.
  5. Insert a resource from the list of Global Variables.
    • You can add more than one resource to an expression.
  6. Insert a function.
    • To see a list of functions, click Insert a function.
    • To filter functions by category, select the All Functions dropdown and choose the category.
  7. Select an operator from the dropdown.
  8. Complete the expression.
  9. After you build each expression, click Check Syntax. The formula builder shows one error at a time.
  10. Complete the configuration for the Start element.
  11. Click Done.
  12. Save your work.
    Start element configuration screen

Create Formulas in the Flow Collection Filter with Formula Builder

You can use Flow Formula Builder to build an expression in the Collection Filter element of a flow. To build your expression, select from a list of functions and operators. To catch errors as you work, check the formula syntax for each expression.

  1. Add an element to a flow.
  2. Select Collection Filter.
  3. Edit the generated Label if needed. Flow Builder generates it based on the element's configuration, and the API Name populates based on the label.
  4. Select a collection.
  5. In the Apply Filter Conditions section, set Condition Requirements to Formula Evaluates to True.
  6. Insert a resource from the list of Global Variables.
    • You can add more than one resource to an expression.
  7. Insert a function.
    • To see a list of functions, click Insert a function.
    • To filter functions by category, select the All Functions dropdown and choose the category.
  8. Select an operator from the dropdown.
  9. Complete the expression.
  10. After you build each expression, click Check Syntax. The formula builder shows one error at a time.
  11. Click Done.
  12. Save your work.
    Collection filter configuration screen

Create Formulas in Flow Formula-type Resources with Formula Builder

You can use Flow Formula Builder to build an expression in Flow Formula-type resources. To build your expression, select from a list of functions and operators. To catch errors as you work, check the formula syntax for each expression.

  1. In Flow, in the Toolbox, in Manager, click New Resource.
  2. From the Resource Type dropdown, select Formula.
  3. Enter an API Name.
  4. Select the Data Type.
  5. Insert a resource from the list of Global Variables.
    • You can add more than one resource to an expression.
  6. Insert a function.
    • To see a list of functions, click Insert a function.
    • To filter functions by category, select the All Functions dropdown and choose the category.
  7. Select an operator from the dropdown.
  8. Complete the expression.
  9. After you build each expression, click Check Syntax. The formula builder shows one error at a time.
  10. Click Done.
  11. Save your work.
    Formula-type resource configuration screen
 
Loading
Salesforce Help | Article