Salesforce
Connect Salesforce to capture attribution when Leads or Contacts are created. A Record-Triggered Flow with an HTTP Callout POSTs the record to Finseo, which parses theLeadSource (or a custom attribution field) and normalizes it into attribution channels.
Salesforce’s native Outbound Messages send XML and are not supported. Use a Flow with an HTTP Callout action instead — no Apex code required.
Get your webhook URL
- In Finseo, open Integrations → Salesforce → Connect.
- Copy your personal webhook URL (contains your project ID,
?source=salesforce, and a secret token):
Set up the Salesforce Flow
- In Setup → Flow Builder, create a Record-Triggered Flow.
- Object: Lead (or Contact), trigger: A record is created.
- Create a Named Credential for
https://app.finseo.ai(required for HTTP Callouts). - Add an HTTP Callout action: method POST, path
/api/attribution/webhook/YOUR_PROJECT_ID?source=salesforce&token=.... - Build the JSON body from record fields — map at minimum
LeadSource,Email,Name, and optionally anAmountfor deal value. - Activate the Flow.
Test and map fields
- Use the live listener in the Finseo connect dialog: create a test Lead and inspect the received payload.
- If the attribution value sits in a custom field instead of
LeadSource, point Finseo at it via Field Mapping.
Troubleshooting
The HTTP Callout fails in Salesforce
The HTTP Callout fails in Salesforce
Check that the Named Credential points to
https://app.finseo.ai and that the callout path includes the full query string with source and token.Responses arrive but the channel is 'unknown'
Responses arrive but the channel is 'unknown'
Finseo maps common LeadSource values (e.g. “ChatGPT”, “Google”, “Referral”) automatically. For custom picklist values, use Field Mapping or adjust the picklist labels.