How to find from which Email To Case service the case was generated in Salesforce?

From EmailMessage object we can find from which Email to Case's Email Address, the case is generated. We can also write a trigger on EmailMessage object to update this value on the case record for reference.

On Demand Email to Cases in my Organization:

Sample Query:

SELECT ToAddress FROM EmailMessage WHERE Incoming = True

ToAddress is used to refer the Email Address in Email To Case and Incoming refers that it is a incoming email to our organization.

No comments:

Post a Comment

Sharing is Caring!!! Share this with your friends!!!

submit to reddit