Skip to main content
Cognito Forms → SalesforceIntegration guide

Connecting Cognito Forms to Salesforce

Cognito Forms supports conditional logic and payments, which means one form can be a survey, a registration and a checkout depending on which branch the visitor takes. 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 Cognito Forms entry 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

Cognito Forms to Salesforce: Leads by branch, paid entries as deals

In Salesforce, Cognito Forms branches become sales decisions: free enquiries create or update a Lead, paid registrations a Contact plus a Closed Won Opportunity with the amount collected. Match on email first, carry hidden-field click IDs into custom Lead fields mapped through conversion, and store the original entry date for offline uploads.

This is the pair where the branch decision becomes a sales decision. A free enquiry should create or update a Lead. A paid registration is usually a closed transaction already and belongs as a Contact plus an Opportunity at Closed Won with the amount Cognito collected. Pushing both into Salesforce as identical Leads makes the sales team call people who have already paid.

Carry the click identifiers from hidden fields into custom fields on the Lead (gclid, fbclid, UTM source) and map them through Lead conversion, or they disappear the moment a rep converts the record. Route through whatever you already use, such as Zapier, Power Automate or a small service reading Cognito's webhook, and check whether Cognito offers a Salesforce connection on your plan rather than assuming one. Match on email before creating anything, because entries from the same person across several Cognito forms otherwise create a Lead each time.

Timing matters for the offline upload that comes later. Salesforce gives you the date a free enquiry became a won deal, which can be weeks after the form. Store the original entry date and click ID together on the record, so the eventual Google or Meta offline conversion is sent against the click that started it.

Cognito Forms → Salesforce · what breaks

Why this join usually fails — Cognito Forms → Salesforce

  1. 01

    The Lead or Contact identity never reaches Cognito Forms

    Forms are embedded and payments may hand off to a processor, breaking the session twice.

  2. 02

    One form, several outcomes, one conversion action

    Conditional logic means the same form produces a free enquiry from one visitor and a paid registration from another. A single conversion action averages them into a value that describes neither.

  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.

Cognito Forms → Salesforce · the fix

What working looks like — Cognito Forms → Salesforce

  • The Lead or Contact identity on every submission

  • 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

Cognito Forms → Salesforce · architecture

How Cognito Forms and Salesforce actually connect

  1. 1

    Cognito Forms holds the truth

    A form that sometimes takes payment and sometimes does not produces two completely different conversions from one submission event.

  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 Cognito Forms entry.

  4. 4

    The event source decides reliability

    Send paid submissions at their amount and unpaid ones as a separate lower-value action.

  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.

Cognito Forms → Salesforce · normal or broken

Working vs. broken, side by side — Cognito Forms → Salesforce

Normal, not a fault

  • The Lead or Contact identity present on the submission

  • Sent from your CRM or payment record

  • 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

Actually broken

  • The Lead or Contact identity missing on most records

    Forms are embedded and payments may hand off to a processor, breaking the session twice.

  • Sent from the browser

    Conditional logic means the same form produces a free enquiry from one visitor and a paid registration from another. A single conversion action averages them into a value that describes neither.

  • 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

Cognito Forms → Salesforce · diagnose

Diagnostic order — Cognito Forms → Salesforce

  1. 01

    Count submissions carrying the Lead or Contact identity

  2. 02

    Follow one real conversion end to end

  3. 03

    List the branches your form can produce and their values

    Usually the first time anyone has, and it is normally the whole fix.

  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.

Cognito Forms → Salesforce · prove

How it gets proven — Cognito Forms → Salesforce

Source of truth

Your CRM or payment record, with the form branch recorded.

  • The Lead or Contact identity confirmed present on a live submission.
  • A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
  • Submissions reconciled by branch against imported conversions.

Cognito Forms → Salesforce · free audit

What we check in the free audit

  • Count submissions carrying the Lead or Contact identity
  • Follow one real conversion end to end
  • List the branches your form can produce and their values
  • Write a test value and open the record in the UI
  • Read the match rate, not the success message

Checked against

Your CRM or payment record, with the form branch recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

Cognito Forms → Salesforce · when not to buy

When you don't need this — Cognito Forms → Salesforce

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the Lead or Contact identity.
  • A single-path form with no payment needs one action and nothing else.
  • 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.

Cognito Forms → Salesforce · what we deliver

What gets built — Cognito Forms → Salesforce

  • Identifier capture into Cognito Forms

    Pass the identifier into a hidden field and carry it through to the payment where one occurs.

  • Event source: your CRM or payment record

    Send paid submissions at their amount and unpaid ones as a separate lower-value action.

  • 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

    Refunds reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your CRM or payment record, with the form branch recorded.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Cognito Forms → Salesforce questions, answered

Check for a native connector; most people use Zapier, Power Automate or the submit webhook, matching on email and writing click IDs to custom Lead fields.

Free · 30 min

Get Cognito Forms and Salesforce joined properly

Free30 minutesNo obligation