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

Pages

Step 2: Callout Template Headers

Callout Template Header Page

In this step we will review Callout Headers. Default headers for Content-Type and Accept are automatically added to the list but be sure to check the external platform API documentation in detail if additional headers are required.

 

To add additional Headers, select the Plus icon button.  

You can include merge fields from your selected Salesforce Main Object of this template in Header Value. Field names used in Header Value must be entered as the API field name (not Label) for example: {!APIFIELD}. If the header value cannot be created with a merge field, there are additional options like merging custom labels, custom metadata, custom setting or even using Apex to generate a header value.

 

NOTE: Do NOT add authorization headers here. Auth headers will be automatically added by the system when the callout is made, based on the Authentication details you provided in the first step.

Once you have completed your Headers, press Save and Continue to move to the Request Body Page.