Skip to content

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.

  1. In Flow Builder, create an Autolaunched Flow (No Trigger).

  2. 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.

  3. Create an input variable for each value users should set, for example a text variable subject, also Available for input.

  4. Build the logic, for example a loop over the collection that creates a task per Contact, with subject as the subject and the Contact’s owner as the assignee.

  5. Save and activate the Flow.

Which variable types CAB supports is in Flow final actions.

  1. In CAB Settings, go to Configure → Automation → Configure Final Actions and select New.

  2. Enter the Final Action Name. The API Name fills in by itself.

  3. Keep Metadata Type on Autolaunched Flow and search for your Flow under Flow.

  4. 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.

  5. 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.

  6. Under Set Input Values, turn each variable the Flow needs to Include and enter defaults. The record collection always receives the Audience Results.

  7. Select Done.

Every setting is described in Flow final actions.

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.