Salesforce Data Loader can be used to bulk import email records and associate them with the Email section of the Activity History on Cases. This is useful when you need to migrate historical email communications into Salesforce and relate them to existing Case records for a complete activity timeline.
When to use this approach:
Requirements:
.csv file with the following column headers. Each column maps to a field on the Salesforce EmailMessage object:ParentId — The Salesforce Case ID (15 or 18-character) to relate the email toFromAddress — The sender's email addressFromName — The sender's display nameToAddress — The recipient's email addressCcAddress — CC email addressesBccAddress — BCC email addressesIsIncoming — True if the email was received; False if it was sentMessageDate — The date and time the email was sent or receivedStatus — The email status (e.g., New, Read, Replied)Headers — Email header data (optional)Subject — The email subject lineTextBody — Plain text version of the email bodyHtmlBody — HTML version of the email body.csv file prepared in Step 1 and click Next.ParentId (Related To field) is not provided while inserting EmailMessage records, the emails become private to the user who imported them and will not appear in Case Activity History.IsClientManaged field to True in your .csv file for the Insert operation.EmailMessage | SOAP API Developer Guide
000385818

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.