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
Lee_CampbellLee_Campbell 

Is there a way to capture outbound email message IDs?

I've set up a class that sends an email to email addresses stored as fields within a custom object. The way the class works is that it queries for the custom objects that have "expired" and emails to everyone on this list of addresses. I want their responses to be recorded directly against the object, so, I was thinking I'd need a means of recording the outbound email ID, storing it and seeing what the inReplyTo feild contained in any inbound messages to match them back up to the correct record entry of the custom object. Any ideas how I can record these outbound message IDs? I can't seem to find an API name for them in the documentation.

 

Thanks,

Lee