Skip to main content
Salesforce → BrazeIntegration guide

Connecting Salesforce to Braze

Salesforce holds the opportunity, the amount and the close — the only place the actual revenue outcome is recorded. Braze is mobile-first lifecycle messaging, which means it resolves to a user rather than to a click and its most valuable channels — push and in-app — exist nowhere near a browser. The join between them succeeds or fails on one thing: whether the Braze external user ID reaches the Salesforce Lead or Opportunity before the conversion happens, because Braze can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Salesforce Contact IDs vs Braze external IDs: choose one key

Key Braze on the product user ID stored on Salesforce Contacts and Leads, never the 18-character record ID, and skip records without one. Send state such as plan from Closed Won, an account-being-worked flag and renewal date, using Opportunity Contact Roles to pick users. Run the flow only when a record changes into Closed Won to avoid duplicate Canvases.

Braze resolves on external_id, which in most companies is the product's user ID, while Salesforce knows Leads and Contacts by their own record IDs. Joining those two keys is the whole integration. Store the product user ID on the Contact, and on the Lead before conversion, and send to Braze keyed on that, never on the 18-character Salesforce ID unless Braze already uses it. Contacts with no product user ID should not be sent; they become profiles with no device, no app and nothing Braze can message through push.

What is worth sending is usually state rather than events: plan or tier from the Closed Won opportunity, a flag that a rep is working the account, the renewal date. Those let in-app messages stop pitching upgrades to someone mid-negotiation and start onboarding once the contract is signed. An opportunity has several contacts, so use Opportunity Contact Roles to decide which users receive the update, one update per user per deal.

The common break is a record-triggered flow that runs on every update. Edit the amount or close date on a Closed Won deal and the event is sent again, every Canvas keyed to it fires again, and the customer gets the welcome push twice. Run the flow only when the record changes into Closed Won, and update the attribute again if a deal is reopened.

Salesforce → Braze · what breaks

Why this join usually fails — Salesforce → Braze

  1. 01

    The Braze external user ID never reaches Salesforce

    Lead conversion is where identifiers die. A custom field on Lead that has no mapped counterpart on Contact or Opportunity is silently discarded when the Lead converts, and nobody notices until months of data are unattributable.

  2. 02

    The identifier is lost at lead conversion

    This one failure explains most broken Salesforce attribution. The data is captured correctly, then thrown away by a mapping nobody configured.

  3. 03

    Duplicate events sending duplicate push notifications

    A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  4. 04

    Nothing reconciles afterwards

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Salesforce → Braze · the fix

What working looks like — Salesforce → Braze

  • The Braze external user ID on every opportunity

  • Conversions arriving in Braze

    The event lands on the user profile, triggers whatever campaigns depend on it, and becomes available for segmentation across push, email and in-app.

  • Reconciled against the source

Salesforce → Braze · architecture

How Salesforce and Braze actually connect

  1. 1

    Salesforce holds the truth

    The opportunity carries the amount, stage and close date. Because Leads convert into Contacts, Accounts and Opportunities, the identifier must be mapped through the conversion or it is dropped exactly at the moment the record becomes valuable.

  2. 2

    Braze needs a click to match

    Braze needs the external user ID and a well-named event with its properties. An event with no external ID lands on an anonymous device profile that may never merge with the real user.

  3. 3

    The identifier is the bridge

    The Braze external user ID, captured at the visit and carried into the Salesforce Lead or Opportunity.

  4. 4

    The event source decides reliability

    Fire on the transition into Closed Won, carrying the amount and the identifier. Note that Salesforce's own advertising integrations vary in what they support — build on the record, not on a connector that might change.

  5. 5

    Deduplication at the destination

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

Salesforce → Braze · normal or broken

Working vs. broken, side by side — Salesforce → Braze

Normal, not a fault

  • The Braze external user ID present on the opportunity

  • Sent from a Salesforce flow, Apex trigger or scheduled export on StageName change

  • Deduplicated correctly

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

  • Reconciles with the source

Actually broken

  • The Braze external user ID missing on most records

    Lead conversion is where identifiers die. A custom field on Lead that has no mapped counterpart on Contact or Opportunity is silently discarded when the Lead converts, and nobody notices until months of data are unattributable.

  • Sent from the browser

    This one failure explains most broken Salesforce attribution. The data is captured correctly, then thrown away by a mapping nobody configured.

  • Counted twice, or not at all

    A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  • Nobody has reconciled it

Salesforce → Braze · diagnose

Diagnostic order — Salesforce → Braze

  1. 01

    Count opportunitys carrying the Braze external user ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Convert a test Lead and inspect the resulting Opportunity

    If the identifier is not on the Opportunity, the field mapping is missing. This takes five minutes and rules out the most likely cause outright.

  4. 04

    Send a test purchase and read the user profile's event stream

    One event or two? Check whether the SDK is already sending the same event before adding a server source, and check that the external ID matches the signed-in user rather than creating a new profile.

  5. 05

    Read the match rate, not the success message

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Salesforce → Braze · prove

How it gets proven — Salesforce → Braze

Source of truth

A Salesforce report of Closed Won opportunities for the same window, by close date.

  • The Braze external user ID confirmed present on a live opportunity.
  • The user profile confirmed to show one event per conversion, with device and user profiles correctly merged.
  • A test lead converted end to end with the identifier confirmed present on the resulting opportunity.

Salesforce → Braze · free audit

What we check in the free audit

  • Count opportunitys carrying the Braze external user ID
  • Follow one real conversion end to end
  • Convert a test Lead and inspect the resulting Opportunity
  • Send a test purchase and read the user profile's event stream
  • Read the match rate, not the success message

Checked against

A Salesforce report of Closed Won opportunities for the same window, by close date.

Get my free conversion tracking audit

Free30 minutesNo obligation

Salesforce → Braze · when not to buy

When you don't need this — Salesforce → Braze

  • Measure identifier coverage yourself first — pull your last hundred opportunitys and count how many carry the Braze external user ID.
  • If your Salesforce instance is heavily customized and administered by another team, scope their availability before commissioning this — the build is usually blocked on admin access rather than on the tracking work.
  • If you have no mobile app and no push channel, Braze is a large piece of infrastructure for a job an email platform already does.

Salesforce → Braze · what we deliver

What gets built — Salesforce → Braze

  • Identifier capture into Salesforce

    Custom field on Lead, matching custom field on Contact and Opportunity, and the field mapping configured so conversion carries it across. Verify by converting a test lead and reading the resulting opportunity.

  • Event source: a Salesforce flow, Apex trigger or scheduled export on StageName change

    Fire on the transition into Closed Won, carrying the amount and the identifier. Note that Salesforce's own advertising integrations vary in what they support — build on the record, not on a connector that might change.

  • Dispatch to Braze

    The Braze user track endpoint, posted server-side from your order or billing system with the external user ID and event properties.

  • Reversals where they exist

    An opportunity moved back out of Closed Won can be retracted, and enterprise pipelines do this often enough to be worth wiring.

Written guarantee

95%+ tracking accuracy

Measured against A Salesforce report of Closed Won opportunities for the same window, by close date.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Salesforce → Braze questions, answered

The product user ID Braze already uses as external_id, stored as a field on the Salesforce Contact. Keying on the Salesforce record ID creates separate profiles from the app's.

Free · 30 min

Get Salesforce and Braze joined properly

Free30 minutesNo obligation