Skip to content

Flow

The Run Flow step is designed to execute Autolaunched Flows directly as a Step within a Step Group execution pipeline. This enables admins and developers to process trigger records declaratively while maintaining framework execution ordering, bulkification, and error tracking.

To learn more about how flows are configured within step groups and trigger bindings, check out Trigger Configuration.

Core Flow Variable Requirements

When executing a Flow inside a Breezz Step, the framework passes trigger context records into the Flow and expects updated records returned in a specific collection variable:

  • records: Record Collection variable (Input enabled) matching the target SObject type. Receives current context records (Trigger.new).
  • oldRecords: Record Collection variable (Input enabled) matching the target SObject type. Receives prior state records (Trigger.old).
  • results: Record Collection variable (Output enabled) matching the target SObject type. Holds all records modified or created by the Flow. Breezz automatically commits these records to the database.

Step 1: Define Flow Variables

Create an Autolaunched Flow in Salesforce Setup and define the three required record collection variables for your target SObject (e.g., Lead):

  1. records: Data Type = Record, Allow multiple values (collection) = true, Available for input = true.
  2. oldRecords: Data Type = Record, Allow multiple values (collection) = true, Available for input = true.
  3. results: Data Type = Record, Allow multiple values (collection) = true, Available for output = true.

Create variables

Step 2: Loop and Filter Trigger Records

  1. Add a Loop element to iterate through the records collection.
  2. Add a Collection Filter element inside the loop to find the corresponding prior version from oldRecords by matching record IDs.

Filter Old Records

Step 3: Evaluate Decision Logic

Add a Decision block to check whether target fields (e.g., Status) were modified during the current transaction pass.

Status Field Changed

Step 4: Populate the Results Collection

  1. Use an Assignment element to update field values on the current record instance (e.g., set Rating to Hot).
  2. Add the modified record instance to the results record collection variable.

Assignment Block

Step 5: Configure the Step

With the Flow successfully created, you must link it to the Step Group.

  1. Ensure an After Update trigger is configured on the target object (Lead). Generate Trigger

  2. Create a new Step, navigate to Breezz Setup → Step Groups → Select Step Group and click New Step, or simply create a step from the Dashboard by clicking the Create Step tile. After Update Trigger Config New Step

  1. Populate the configuration form with the following details:
  • Parent Group: Select a Step Group and provide a clear identifier for the step.
  • Description: Enter a comprehensive explanation of the step’s purpose (e.g., Executes Lead status flow updates.).
  • Order: Determine order of execution (e.g., 1).
  • Is Active: Determine if a step is active.
  • Feature Availability: Determines feature availability. For more information refer to the Feature Flags section.

In the Entry Criteria section, you can set the conditions a record must meet to trigger this step.

In the Action Configuration section:

  • Type: Select Flow.
  • Flow Name: Provide the name of the Autolaunched Flow you created.
  1. After filling out all required fields, click Save.

Step 6: Verify the Step

To confirm that the step was created successfully, navigate to the Breezz Setup → Step Groups → Select Step Group on which you created a step. Created Step When a Lead status is updated (e.g., changed to “Working - Contacted”), the Trigger fires, executes the Flow Step, and automatically updates the Lead Rating field to Hot.