documentation logo
All you’ll ever need to know about Declarative Webhooks and how to get started.

Pages

Step 4: Inbound Call Response Body

Defining the response body of the Inbound Call

This page is where the admin can define the response body that is sent back when an inbound call is made.

 

You can define the body that is sent back for 3 different response types:

  • 200: Sent when the call is successful
  • 4XX: Sent when there are issues with the request (unauthenticated, body format is incorrect, etc)
  • 5XX: Sent when an internal server error occurs in Salesforce. That usually happens in one of the actions defined by the user.

The main record used here is the record identified by the “Find/Update a Main Record” action defined in the previous step, and the main object type is defined in the first step of this wizard.

Similarly to the JSON Builder for the Outbound Call Templates, you can map fields from the main object or related objects and lists, as well as static values.

For 4XX and 5XX versions of the response, you can map the error that was thrown by the request by choosing Server Returned Error Message in the Value Source input.

 

The JSON Builder used here is the same one as the one for Outbound Call Templates, so check the Step 3: Callout Template Request Body (JSON Format) section in the user guide for more details.