Skip to main content

Receive an inbound webhook and update Salesforce

Build the pattern where an external system calls Payloads and Payloads writes the inbound data to Salesforce.

Receive an inbound webhook and update Salesforce

Build an Inbound Payload that accepts an external event and uses a Target Action to create or update Salesforce records.

Choose the response timing

Create an Inbound Payload. Choose Immediate if the caller needs the result of processing in the response. Choose Queueable or Batchable if an early acknowledgement is appropriate. Firing Mode is fixed at creation in the v1.53 editor.

Immediate sequences run HTTP Request, processing Actions, then HTTP Response. Asynchronous sequences run HTTP Request and HTTP Response first, then the remaining Actions later. Their HTTP 200 response does not confirm that Salesforce updates succeeded.

Model the incoming event

Select HTTP Request, set its Content Type and define the Body, Headers and Parameters used by the mappings. Import a representative sample body where helpful, then review types and repeating arrays.

Model a stable external event or record identifier so repeated delivery can be matched deliberately. Do not rely on the caller sending each event only once.

Add and map the Target

Use the plus button in the processing section and choose Target. Select the Salesforce object, operation and record mode, then save the Target. Open it again to add field mappings.

Map values from HTTP Request using the available Action data. For a multi-record Target, choose the incoming source array; its entries establish the current row context.

Use explicit matching for updates or upserts. If a relationship is identified by an external ID, see Map parent lookups by external ID.

Configure the response and Endpoint

Select HTTP Response and define the response content. Immediate responses can use completed earlier processing outputs. Asynchronous acknowledgement bodies cannot use outputs that will only exist later.

Under HTTP Request, create an Endpoint. Choose the active Salesforce Site, Endpoint Name and Method. Configure the required request checks and copy the generated URL. Disable Echo Mode before testing processing.

Test a controlled event

Send a sample request with test business data. Open the resulting Job and inspect HTTP Request, the Target Action and HTTP Response. Check the actual Salesforce record, not just the Job status.

Test missing fields, unmatched identifiers and repeated delivery. For asynchronous processing, wait for the final Job outcome and confirm that the acknowledgement does not mislead the caller about downstream success.

If no Job appears, check routing, method and access. If a Job fails, inspect the first failing Action and the Salesforce validation or mapping error.

Did this answer your question?