function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gary WGary W 

New Email-To-Case Threading Behaviour - How To Reference a Case?

The new email-to-case threading behaviour is described in this knowledge article (https://help.salesforce.com/articleView?id=000355168&type=1&mode=1). I've reviewed this, but cannot understand how to reference a case record on an outbound email, when there has not been any previous email messages recorded on the case yet.

Previously, we could include the thread Ref Id from the case in an outbound email and have the replies route into the case via email-to-case.

Now that this is being deprecated, using the new method, how do we ensure that replies will be threaded to a case, which has no existing email messages, when sending an outbound email (though an apex action)?
AbhishekAbhishek (Salesforce Developers) 
https://help.salesforce.com/articleView?id=000356212&language=en_US&mode=1&type=1

Follow the new article as mentioned above.


If it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.