Skip to main content
Loop → SalesforceIntegration guide

Connecting Loop Returns to Salesforce

Loop is built to turn returns into exchanges rather than refunds, which means the outcome of a return is a decision with three different revenue consequences. Sending conversions into Salesforce rather than out of it is how marketing data reaches the place sales actually works. The join between them succeeds or fails on one thing: whether the Lead or Contact identity reaches the Loop return before the conversion happens, because Salesforce can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Loop return outcomes in Salesforce for wholesale and service teams

Only for brands with wholesale, account programs or Service Cloud: attach Loop outcomes to the Contact or a custom Return object, upserting on an external ID holding the Shopify customer ID, with email only as fallback, so returns don't create duplicate Contacts. Copy the original order's UTM and click values onto the return record. Check validation rules when writes fail.

For a DTC-only brand, Salesforce is not where Loop data belongs. It earns a place when the brand also sells wholesale or runs an account program in Salesforce, or uses Service Cloud for customer support: then a Loop outcome attached to the Contact, or to a custom Return object, tells sales and service which customers exchange rather than refund. Check whether Loop has a native Salesforce connection; many brands route Loop into a helpdesk instead.

The join key is the Shopify order ID and customer, matched to the Contact. Upsert against an external ID field holding the Shopify customer ID rather than inserting, because an integration that creates a new Contact for every unmatched return will fill the org with duplicates within weeks. Fall back to email only when the external ID is missing.

For attribution, copy the original order's UTM and click values onto the return record so a Salesforce report can show return outcomes by acquisition campaign. When returns appear in Loop but not in Salesforce, the cause is usually a required field or validation rule on the custom object rejecting the write; read the integration's error log rather than its status line.

Loop → Salesforce · what breaks

Why this join usually fails — Loop → Salesforce

  1. 01

    The Lead or Contact identity never reaches Loop

    Returns are initiated weeks after the order, in a Loop-hosted portal, with no session from the original purchase.

  2. 02

    Every return treated as a full refund

    It understates revenue on exchanges, which is exactly the outcome Loop is designed to produce. A store with a high exchange rate reports itself as performing far worse than it is.

  3. 03

    Writes that succeed and change nothing

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  4. 04

    Nothing reconciles afterwards

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

Loop → Salesforce · the fix

What working looks like — Loop → Salesforce

  • The Lead or Contact identity on every return

  • Conversions arriving in Salesforce

    The marketing context appears on the record and flows into the opportunity, where sales and reporting can both use it.

  • Reconciled against the source

    Loop Returns's own records are the reference, not either dashboard.

Loop → Salesforce · architecture

How Loop and Salesforce actually connect

  1. 1

    Loop Returns holds the truth

    An exchange keeps the revenue and costs you shipping. A refund reverses it entirely. Store credit sits in between. Treating all three as one reversal loses the distinction Loop exists to create.

  2. 2

    Salesforce needs a click to match

    Salesforce needs a resolvable record and a custom field to write to. Field-level security and validation rules can silently reject writes, which is a Salesforce-specific failure that returns success at the API level and changes nothing.

  3. 3

    The identifier is the bridge

    The Lead or Contact identity, captured at the visit and carried into the Loop return.

  4. 4

    The event source decides reliability

    Send orders, then adjust: refunds reverse fully, exchanges reverse only the shipping cost, store credit reverses to the credit's value.

  5. 5

    Deduplication at the destination

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

Loop → Salesforce · normal or broken

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

Normal, not a fault

  • The Lead or Contact identity present on the return

    Visible on the record itself in Loop Returns, not merely captured somewhere on the site.

  • Sent from the store order record, adjusted by Loop outcomes

  • Deduplicated correctly

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

  • Reconciles with the source

    Salesforce's count and Loop Returns's records agree within a few percent over a closed window.

Actually broken

  • The Lead or Contact identity missing on most records

    Returns are initiated weeks after the order, in a Loop-hosted portal, with no session from the original purchase.

  • Sent from the browser

    It understates revenue on exchanges, which is exactly the outcome Loop is designed to produce. A store with a high exchange rate reports itself as performing far worse than it is.

  • Counted twice, or not at all

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  • Nobody has reconciled it

    The dashboard shows a number and no one has compared it to Loop Returns.

Loop → Salesforce · diagnose

Diagnostic order — Loop → Salesforce

  1. 01

    Count returns carrying the Lead or Contact identity

  2. 02

    Follow one real conversion end to end

  3. 03

    Split returns by outcome — refund, exchange, store credit

    The mix differs by campaign and by product, and it changes the net revenue figure materially.

  4. 04

    Write a test value and open the record in the UI

    The API saying it worked and the field actually holding the value are different things in Salesforce more than anywhere else.

  5. 05

    Read the match rate, not the success message

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

Loop → Salesforce · prove

How it gets proven — Loop → Salesforce

Against Loop Returns's own records, not against either platform's dashboard.

Source of truth

Store orders net of returns, with exchanges and refunds distinguished.

  • The Lead or Contact identity confirmed present on a live return.
  • A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
  • Net revenue reconciled after the return window with the three outcomes adjusted separately.

Loop → Salesforce · free audit

What we check in the free audit

  • Count returns carrying the Lead or Contact identity
  • Follow one real conversion end to end
  • Split returns by outcome — refund, exchange, store credit
  • Write a test value and open the record in the UI
  • Read the match rate, not the success message

Checked against

Store orders net of returns, with exchanges and refunds distinguished.

Get my free conversion tracking audit

Free30 minutesNo obligation

Loop → Salesforce · when not to buy

When you don't need this — Loop → Salesforce

  • If Salesforce already reports conversions that reconcile against Loop Returns's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred returns and count how many carry the Lead or Contact identity.
  • If you only issue refunds, a simple full reversal is correct and this distinction adds nothing.
  • If your Salesforce org is administered by a team you cannot get time with, scope their availability before starting — this build is usually blocked on admin access rather than on the work.

Loop → Salesforce · what we deliver

What gets built — Loop → Salesforce

  • Identifier capture into Loop

    Join on the order identifier. There is no identifier to capture here — the work is carrying the order's through and reversing correctly.

  • Event source: the store order record, adjusted by Loop outcomes

    Send orders, then adjust: refunds reverse fully, exchanges reverse only the shipping cost, store credit reverses to the credit's value.

  • Dispatch to Salesforce

    API writes to the Lead or Contact record, or a platform event, carrying the marketing context as custom field values.

  • Reversals where they exist

    This is the whole integration. Three outcomes, three different adjustments.

Written guarantee

95%+ tracking accuracy

Measured against Store orders net of returns, with exchanges and refunds distinguished.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Loop → Salesforce questions, answered

Only if Salesforce is where customer or account relationships are managed, such as wholesale or service teams. For pure DTC, a warehouse or analytics tool is a better home.

Free · 30 min

Get Loop and Salesforce joined properly

Free30 minutesNo obligation