X-SFDC headers are custom email headers that Salesforce adds to inbound emails in addition to standard headers such as To, From, and Subject. For example, when an email is received by an inbound email service such as Email-to-Case or Email-to-Apex, Salesforce may append headers like X-SFDC-Original-RCPT.
These X-SFDC headers are for Salesforce internal use only and are not supported for use with custom code associated with inbound email services. There is no guarantee or contractual commitment on their contents, and they are subject to change without notice.
Relying on undocumented X-SFDC headers in custom Apex code creates a risk of unexpected behavior, broken integrations, or silent failures if Salesforce modifies or removes those headers in a future release.
To avoid issues caused by undocumented X-SFDC headers in your custom code for Email-to-Case or Email-to-Apex services, follow these steps:
Note: Salesforce will update documentation to describe supported X-SFDC headers as they are officially committed to. Any headers not listed in that documentation should not be relied on.
000390516

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.