2

I am sending one email to two address [email protected] and [email protected] and both the address are on TO section. for both the address email 2case has been setup. Salesforce is creating two cases. Is there any way to track the email address for which the case got created.

0

1 Answer 1

5

Let's say, Email-to-Case set up is like this:

EmailtoCase

And user is sending single email to both the address [email protected] and [email protected].

So, there are 2 cases will be created and you if see any one of the Email messages, you will find To Address as [email protected];[email protected]

Though for both the Email Messages Parent Ids are different.

I could find querying Headers from EmailMessage

SELECT Id,ToAddress, ParentId, Headers FROM EmailMessage WHERE Id = '02s7A000008rq3L'

In the Header, search for X-SFDC-Original-RCPT, it shows that particular email address which has been mentioned as Email Services Address for which this case is getting created.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .