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
Paul Foley4Paul Foley4 

Does the case before insert trigger fire when using email to case?

I'm having trouble getting my case before insert trigger to fire when a new case is created via email to case.

I'm just wondering if that it doesnt fire for some reason when they come in via email to case?
Best Answer chosen by Paul Foley4
ManojjenaManojjena
Hi Paul,
Trigger will fire ,how ever you are not getting the log as you set the log in your name .Email to case have some other user's log you need to set .

trigger will fire for sure .

 

All Answers

Paul Foley4Paul Foley4
Further to this if I create a case manually my trigger fires, and I can see my system.debug messages coming through just fine. If i create the case via the on-demand email to case, I get nothing in the logs, and the trigger doesnt fire (as best as I can tell)
ManojjenaManojjena
Hi Paul,
Trigger will fire ,how ever you are not getting the log as you set the log in your name .Email to case have some other user's log you need to set .

trigger will fire for sure .

 
This was selected as the best answer
Paul Foley4Paul Foley4
That was exactly it. Thanks so much Manoj.
ManojjenaManojjena
Thanks Paul ,Glad to see that your problem is resolved .