Developer docs
Call Edge Connect from Salesforce
A flow can also be started from Salesforce itself, by a Salesforce Flow or by Apex. This part is for admins and developers.
From a Salesforce Flow
- In Edge Connect, give your flow an HTTP Webhook trigger.
- Copy the flow version ID. Today it comes from the webhook URL: open the flow, then Edit webhook URL.
- In your Salesforce Flow, add the Edge Connect action, paste the ID, and pass the record that started the Flow.
- On the first run, Edge Connect recognizes the fields on its own.
Which action to use. A Screen Flow can use the synchronous Send. A Record-triggered Flow has to use Send Async, because Salesforce does not allow synchronous external calls there.
From a record change
The Salesforce connector has a Change Data Event trigger. It starts the flow when a record changes, and brings the fields of that object with it.
From Apex
The Edge Connect Apex class takes three values:
- body: the JSON you want to send.
- flow ID: the ID of the flow version.
- component ID: which trigger to call, when the flow has more than one. Leave it empty to use the first.