Loading
Extend Salesforce with Clicks, Not Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Define Custom HTTP Headers for OData Connectors

          Define Custom HTTP Headers for OData Connectors

          Define and activate custom HTTP headers to pass more request information to the external data source for processing.

          Required Editions

          Available in: both Salesforce Classic and Lightning Experience (not for high-data-volume external objects)

          Available in: Developer Edition

          Available for an extra cost in: Enterprise, Performance, and Unlimited Editions

          User Permissions Needed
          To create and edit external data sources: Customize Application

          Custom HTTP headers provide context information from Salesforce such as region, org details, or the role of the person viewing the external object. For each OData external data source, define up 10 HTTP headers to request or data. For example, to see who’s making a callout to the external data source, use a formula that resolves to the name of the user.

          When naming the custom HTTP header, don’t override the following existing standard header names.

          • Content-Type
          • Accept
          • maxVersionHeader
          • versionHeader
          • X-HTTP-METHOD
          • Content-Length
          • X-CSRF-Token (when CSRF-enabled)
          • Prefer (when a trigger on the external object is enabled)
          • Cookie
          1. From Setup, enter External Data Sources in the Quick Find box, then select External Data Sources.
          2. Click the name of an OData 2.0 or 4.0 data source.
          3. In the External Custom HTTP Headers related list, click New to create a custom HTTP header or Edit to change an existing one.
          4. Complete the fields.
            Field Description
            Header Field Name Enter a name that contains at least one alphanumeric character or underscore. It can also include: ! # $ % & ' * + - . ^ _ ` | ~
            Header Field Value Create a formula for the Header Field Value using the formula editor. The values in the formula must evaluate to a string. If the formula resolves to null and an empty string, the header isn’t sent.
            Active To start using the header field right away, select the Active checkbox.
            Description A text description of the header field’s purpose.
            Parent The name of the entity that the custom HTTP header is related to. Using a named credential as the parent entity for the custom HTTP header isn’t supported.
          5. Click Save.
          Note
          Note You can’t add or delete Custom HTTP headers that are included in a managed package. However, you can edit custom HTTP headers that are part of a managed package. The Header Name and Description fields are developer editable. The Active and Header Field Value fields are both subscriber and developer editable.
           
          Loading
          Salesforce Help | Article