You need to sign in to do that
Don't have an account?
SylverG
Can code using the EmailMessage object not be transported using change sets or Migration tool?
Hi, When creating a simple class (or trigger) CheckEmail using the EmailMessage object with the method public class CheckEmail { public static void HandleEmailMessages(List<EmailMessage> emailMessageList){ } Does anybody have any clue why this class does not transport?} this class works fine functionally, however can not be moved using the Migration tool or Change sets to my next sandbox. The error received is: CheckEmail Apex Class 1 8 Entity is not org-accessible Thx Guy |
Figured out that the target environment first needs to have email2case enabled in configuration. When this is enabled, the EmailMessage object becomes available for usage.