Assigning Opensense tags with Salesforce Flow Builder
Overview
Section titled “Overview”This article explains how to create a Salesforce Flow that assigns Opensense custom tags to contacts or leads, for recipient-based banner targeting in email signatures. The steps cover a standard record-triggered flow, and you can extend them for more advanced use cases.
Step-by-step guide
Section titled “Step-by-step guide”Step 1: Open Flow Builder
Section titled “Step 1: Open Flow Builder”- In Salesforce, select the gear icon, then Setup.
- In the Quick Find box, search for Flows, and select Flows under Process Automation.
- Select New Flow.
Step 2: Select a flow type
Section titled “Step 2: Select a flow type”In the New Automation window, under Frequently Used, select Record-Triggered Flow. It updates a record automatically, based on criteria. If your org lists the flow types with a Create button instead, select Record-Triggered Flow, then Create.

Step 3: Configure the trigger
Section titled “Step 3: Configure the trigger”- Set Object to Contact (or Lead, depending on your setup).
- Under Trigger the Flow When, select A record is created or updated.
- Set the Entry Conditions to match the segment you want to target: for example, filter by Industry, Lead Source, or any other relevant field.
- Select Done.

Step 4: Add an Update Records element
Section titled “Step 4: Add an Update Records element”-
On the Flow canvas, select the + icon to add an element, and select Update Records.
-
In the Update Records panel, set these:
- How to find records to update
- Use the record that triggered the flow (the Contact or Lead).
- Filter conditions
- Leave as-is to update the triggering record, or add more conditions as needed.
- Field
- Select sgentags to assign a rotating tag set for banner targeting. Use sgenads to assign a static banner instead.
- Value
- Enter the tag names for your banner campaign, as configured in the Opensense portal.

-
Enter the tag values as a plain string. These formats are valid:
sales: a single tag.sales,marketing,sales: sales displays twice as often as marketing.sales,marketing,sales,inbound24: the same weighting, with another tag rotating in.

Step 5: Save and activate the flow
Section titled “Step 5: Save and activate the flow”-
Select Save in the upper right.
-
Give the flow a descriptive name (for example,
os_webinar), and select Save.
-
Select Activate.
What’s next
Section titled “What’s next”- Creating a banner campaign: configure banner campaigns and tags in Opensense.
- Salesforce integration requirements
- Finding Salesforce field API names to query in Opensense
For further help, contact Opensense Support at help@opensense.com.




