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
Ragnar Lothbrok 7Ragnar Lothbrok 7 

Is there a way that we can associate/Relate email message record to multiple Object Record ?

Hi there,
I have a requirement when i need to send email from order object record.
So when i send email from order record then by default it RelatedTo that same Order record.
I need to make one more thing here is that ,there is an Account lookup field on order, So whenever an email is sent then it should relate to order record as well as the Account record associated with that Order record.

Anyone knows how we ca do that, please guide me in this.
Sai PraveenSai Praveen (Salesforce Developers) 
hi Ragnar,

To answer straign forward this is not possible to relate one email to two different objects.

You may have to create anothet field on Email message as Lookup to Account and populate the Account Id through Trigger. But this behaviour may not be same as Related To on Email message object.

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.