How do I create an automation rule in Flow Builder?

How do I create an automation rule in Flow Builder?

Salesforce Flow Builder is the declarative tool used to automate complex business processes without writing code. Flows are now the preferred method for all automation tasks (replacing older tools like Workflow Rules and Process Builder).

Creating an automation rule involves selecting the right type of Flow, defining its trigger, and building the necessary logic (elements) and actions.

Step 1: Initiate Flow Creation

How do I create an automation rule in Flow Builder? | Salesforce | Step 1
  • Navigate to Setup: Click the gear icon (⚙️) to Setup.
  • Find Flow Builder: In the Quick Find box, type Flows and select Flows under Process Automation.
  • Create New: Click the “New Flow” button.
  • Select Flow Type (The Crucial Choice): This defines when the automation runs.
How do I create an automation rule in Flow Builder? | Salesforce | Step 1.1

Flow Type

When It Runs

Use Case

Record – Triggered Flow

Runs automatically when a record is created, updated, or deleted.

Automating Lead Assignment, updating an Opportunity field when a Contact field changes. Most common Flow type.

Screen Flow

Runs when a user clicks a button or link, and requires user interaction.

Creating a guided step-by-step wizard for creating a new Project record or logging a customer service call.

Scheduled-Triggered Flow

Runs automatically at a specific time and frequency (e.g., every night at 2:00 AM).

Sending daily reports, mass-updating old data (e.g., closing inactive Leads).

Step 2: Define the Trigger (For Record-Triggered Flow)

How do I create an automation rule in Flow Builder? | Salesforce | Step 2

This step defines the context for your automation.

  • Select Object: Choose the Salesforce object that starts the automation (e.g., Lead or Opportunity).
  • Configure Trigger: Select when the flow should run:
    • A record is created.
    • A record is updated.
    • A record is created or updated. (Most common choice)
  • Set Entry Conditions (Optional but Optimal): Define criteria that must be met before the flow runs (e.g., Industry equals Technology AND Lead Source equals Organic Search). This prevents the flow from running unnecessarily.

Step 3: Build the Logic and Action Elements

How do I create an automation rule in Flow Builder? | Salesforce | Step 3

Use the Flow Builder canvas to add elements that perform the actual business logic. 

  • Click the + button to add elements.
  • Add Get Records (Logic) by clicking +: Use this element to look up related records.
    • Example: Get the related Account record to check its Annual Revenue.
  • Add Decision (Logic)  by clicking +: Use this to branch the flow path based on conditions.
    • Example: Decision: If Account Revenue is greater than $1 million, take the High Priority path; otherwise, take the Standard Priority path.
  • Adding Assignment (Logic)  by clicking +: Use this to set the value of a variable.
  • Update Records (Action): Use this to change data on the record that triggered the flow or related records.
    • Optimal Action: In the High Priority path, use an Update Records element to set the triggering Lead’s Status to Hot and assign it to the VP of Sales.

Step 4: Save, Debug, and Activate

  • Save: Click “Save,” give the Flow a clear Flow Label (e.g., Auto_Lead_Assignment_Tech_Organic), and a unique API Name.
  • Debug: Crucially, click the “Debug” button to test the flow logic on an existing record without making permanent changes to your data.
  • Activate: Once testing is complete and successful, click the “Activate” button. The automation rule is now live.

Optimal Tip: Salesforce recommends having only one Record-Triggered Flow per object (or one set of flows for Before Save and one for After Save). Consolidate all your automation logic for an object into these few main flows for simplified maintenance.

Last Updated 2nd February 2026.

Was this article helpful?

We publish our Knowledge Base to help individuals and businesses resolve common issues across websites, advertising platforms, Salesforce and other digital systems.

We regularly review and update our guides, but the platforms, software and services covered can change without notice. As a result, screenshots, settings, features or recommended processes may differ from those available when an article was last reviewed.

The information provided is general guidance and should not be treated as advice specific to your systems or circumstances. UTDS Optimal Choice cannot accept responsibility for errors, data loss, service disruption or other issues resulting from changes made by following these guides.

If you are unsure about any of the steps, particularly where a change could affect live systems, data, tracking or business processes, we recommend speaking to us before making the change. Our team can review your specific setup and provide advice based on the current platform and configuration.

Time for some professional support?

Our team are ready to help. As one of the few digital agencies that is both a registered Salesforce Consulting Partner and Google Partner Agency, UTDS Optimal Choice is expertly positioned to support you across your entire digital landscape.

Related Pages