Salesforce
Salesforce is a CRM platform. A record-triggered flow built in its Flow Builder can call an address with the action Create HTTP Callout: a lead is created, an opportunity moves to another stage, a case changes its status — and Salesforce sends the event in the AlphaFlow format to the Flows address. That starts your flows in the cabinet: the customer gets the right message in Viber or SMS, with a reminder if nothing happens.
Two things share the word here: a "Salesforce flow" is built in Flow Builder; "your flows" are the flows in the cabinet.
This page is written from the public documentation of Salesforce and has not been checked on a live account yet.
What you need
- A Salesforce administrator. The setup takes a Named Credential and an External Credential, a permission set, the schema of the request and the fields assigned in Flow Builder. Without an administrator Salesforce is not set up.
- Flow Builder and Named Credentials. Which editions include the HTTP callout is not confirmed by the documentation; by other sources — Enterprise and Unlimited, or Professional with API access.
- Outbound Messages are not supported. They send fixed SOAP XML and wait for a SOAP acknowledgement in the
answer; the Flows address answers
{"status":"success"}, and Salesforce would keep repeating the delivery. Use HTTP Callout only.
Step 1. Create a connection
- Open
Flows → Connections, press Connect a system and choose Salesforce. - Press Copy address. It looks like
https://events.alphasms.net/hooks/<TOKEN>— keep it secret.
Step 2. Set up Salesforce
The steps are taken from descriptions in Salesforce blogs. The names of the wizard fields, apart from Create HTTP Callout, Review, External Credentials, Principals and Custom Headers, are not confirmed by the documentation.
- Setup → Named Credentials → External Credentials → New: no authentication (No Authentication), one principal.
- Setup → Named Credentials → New: URL — the whole address from the cabinet; link it to the External Credential and allow callouts.
- A Permission Set: give access to the principal of this External Credential to the user the Salesforce flow runs as, and assign the set to that user.
- In Flow Builder create a Record-Triggered Flow on the object — Lead, Opportunity or Case. Put the callout on the asynchronous path (Run Asynchronously): by third-party descriptions, the immediate path of a record-triggered flow does not allow callouts (not confirmed by the documentation).
- Action → Create HTTP Callout: a name (Label, API Name), the Named Credential → Next.
Method —
POST, the path — empty. - Paste the sample request below and press Review: Salesforce builds the schema of the body from it. The values in it are only for the schema.
- Sample response —
{"status": "success"}: the Flows address always answers so. Press Done. - Before the action add an Assignment that fills the body variable from the record:
event— the name of the AlphaFlow event as text;contact.phone— the phone of the contact. An opportunity has no phone: get the related contact with Get Records (through OpportunityContactRole or Account);message_id— a formula from the id of the record and the stage without spaces, for exampleId & ':' & SUBSTITUTE(TEXT(StageName), ' ', ''): a message id is up to 128 printable ASCII characters with no spaces, so a stage like "Closed Won" would be refused;traits.first_name— the first name of the contact;occurred_at— ISO 8601 with a time zone. If you leave it empty, AlphaFlow takes the time of receipt;- the rest of
contactandproperties— from the record.
- Add a Fault path to the action, so that a failed callout does not stop the Salesforce flow.
- Save and Activate.
The sample request:
{"event":"deal_stage_changed",
"contact":{"phone":"+380671234567","email":"client@example.com","external_id":"0035g00000AbCdE"},
"traits":{"first_name":"Olena"},
"message_id":"sf:deal_stage_changed:0065g00000XyZab:ClosedWon",
"occurred_at":"2026-11-20T12:20:00Z",
"context":{"source":"salesforce"},
"properties":{"stage":"Closed Won","record_id":"0065g00000XyZab","amount":1200}}
Step 3. Send a test
Run Debug in Flow Builder on a test record, or move a test opportunity to another stage. The event appears in
Flows → Connections → Event journal within seconds. The body
is already in the AlphaFlow format, so AlphaFlow takes it as it is, without mapping. The connection shows Recognised:
Salesforce.
Events
| Record in Salesforce | AlphaFlow event | Properties |
|---|---|---|
| Lead is created | lead_submitted | record_id |
| Opportunity changes its stage | deal_stage_changed | stage, record_id, amount |
| Case is created | ticket_created | record_id |
| Case changes its status | ticket_status_changed | status, record_id |
| Case is closed | ticket_closed | record_id |
Put ticket_closed only into a flow whose entry conditions check the value — for example, Status equals
Closed — and that runs only when the record is updated to meet them. A flow on any change of the status sends
ticket_status_changed with status: otherwise a case that only moved to another status reaches the customer as
"closed".
The name of the event is the event field the Assignment fills. The contact is found by contact.phone,
contact.email and the Salesforce id in contact.external_id; the first name goes in traits.first_name. stage
is a plain property: such a body has no table of stages. The names of the events are the ones the ready-made
templates expect — see Recommended events.
Good to know
- Whether HTTP Callout repeats a failed request is not described in the documentation. The Fault path keeps the Salesforce flow going when a call fails.
- By the same blogs, HTTP Callout takes only a JSON answer. The Flows address answers
{"status":"success"}— that fits. message_idfrom the record and the stage makes a repeat in the same stage not recorded twice.- The address always answers
200. Above the daily event limit the event is refused in AlphaFlow withquota_exceededand shown in the journal; the Salesforce flow keeps running.