Email Template: Case Thread ID in an email template is stripped
Last updated 2022-05-18 ·Reference W-2774447 ·Reported By 224 users
In Review
Summary
When using an email template with Case Thread ID merge field ({!Case.Thread_Id}) to send outbound email from a case, the thread id is stripped.
Repro
There may be different scenarios around this one. Below is an example with reproduction steps:
1. Create a new HTML template in the app.
2. Copy/Paste following HTML (Note the merge field {!Case.Thread_Id} used in the body tag)
===============================
<html>
<head>
<title></title>
</head>
<body>
<ul><li>Click here to see the issue in the new email window: <b><a href="mailto:test@domain.com?subject=Email
%20Template%20Test%20Missing%20ThreadID%20{!Contact.FirstName} {!Contact.LastName}%20({!Case.Thread_Id})
&body=This is a test for email template ThreadID issue.">Click Here</a></b></li>
</body>
</html>
===============================
3. Save the template
4. Open an existing case with yourself as a contact
5. Use EmailAuthor (via "Send an Email" button in Activity History)
6. On the EmailAuthor page, click "Select Template"
7. Select the above HTML template saved in #3
8. Send the email
9. Observe email is received in your inbox
10. Click on the "Click here" hyperlink in the email body, a new "Compose Mail" window would open with Subject being populated
11. Observe Subject being populated however the thread id is stripped
Workaround
Enable below settings on Email-to-Case Settings page so that Case outbound emails have a Thread ID or Reference ID appended.
Insert Thread ID in the Email Subject
Insert Thread ID in the Email Body
And ensure any reply back to Salesforce have the Thread ID or Reference ID copied in email subject and/or body.
If the Reference ID is missing from the Subject, as in the above scenario, manually copy from the original email body and paste in the Subject of New Email and send the reply email.
Reported By (224)







































































Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.