Create a Flow final action
After these steps, users can run your Flow on the results of an audience.
Before you begin
- Edition
- Professional and Ultimate
- Permission
- Access to CAB Settings through the Campaign Audience Builder Admin permission set, and permission to build Flows. See Permission sets.
What a final action is and who can run it is in How final actions work. This example creates a task for every Contact in the results, with a subject the user enters.
Build the Flow
Section titled “Build the Flow”-
In Flow Builder, create an Autolaunched Flow (No Trigger).
-
Create a variable for the results: data type Record, object Contact, with Allow multiple values and Available for input. CAB fills it with the audience’s results.
-
Create an input variable for each value users should set, for example a text variable
subject, also Available for input. -
Build the logic, for example a loop over the collection that creates a task per Contact, with
subjectas the subject and the Contact’s owner as the assignee. -
Save and activate the Flow.
Which variable types CAB supports is in Flow final actions.
Set up the final action
Section titled “Set up the final action”-
In CAB Settings, go to Configure → Automation → Configure Final Actions and select New.
-
Enter the Final Action Name. The API Name fills in by itself.
-
Keep Metadata Type on Autolaunched Flow and search for your Flow under Flow.
-
Optional: enter a Description users see before they run the action. Under Show Advanced, set a Success Message, a Custom Permission Name or the Batch Size. Select Next.
-
Under Select Audience Object, choose the object of your record variable, here Contact. Under Set Available Fields, select Add Field for each field the Flow reads, here the owner ID. Select Next.
-
Under Set Input Values, turn each variable the Flow needs to Include and enter defaults. The record collection always receives the Audience Results.
-
Select Done.
Every setting is described in Flow final actions.
Check the result
Section titled “Check the result”Open the results of a Contact audience. The final action appears in the menu next to Add to Campaign. It opens a window with the description and the included inputs; Run starts it. Up to the batch size, it runs right away and shows the success message; larger results run in the background.

