Skip to content

Assigning Opensense tags with Salesforce Flow Builder

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.

  1. In Salesforce, select the gear icon, then Setup.
  2. In the Quick Find box, search for Flows, and select Flows under Process Automation.
  3. Select New Flow.

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.

The New Automation window in Flow Builder, with Record-Triggered Flow under Frequently Used

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

The Configure Start panel, with Object set to Contact, A record is created or updated selected, and two entry conditions

  1. On the Flow canvas, select the + icon to add an element, and select Update Records.

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

    The Update Records panel, with Use the contact record that triggered the flow selected and the sgentags field set to sf_webinar

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

    The sgentags value set to sf_webinar,sf_sales,sf_webinar, a comma-separated plain string

  1. Select Save in the upper right.

  2. Give the flow a descriptive name (for example, os_webinar), and select Save.

    The Save the flow window, with the Flow Label and Flow API Name set to os_webinar

  3. Select Activate.

For further help, contact Opensense Support at help@opensense.com.

Screenshot preview

Screenshot