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
Jenny Chen 9Jenny Chen 9 

email from apex trigger, apex trigger already deactivated, however, still got email???

Hello, 
I have an Apex trigger on a custom object, it is based on insert, once a new object created, an email will send out to the owner. i have deactivated this trigger, however, i continue to get email. I deactivated other triggers on this custom object. still got email. Why?

Is it possible some caching somewhere on the Exchange 2010 which is my company's mail server? has anyone experienced issue like this before? 
Thank you so much for your help. 
 
SandhyaSandhya (Salesforce Developers) 
Hi,

Check if you any work flow rules.Any alerts which were scheduled before the rule was deactivated will still be sent, as long as the criteria for the workflow rule is still met at the scheduled time.

Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
 
Best Regards
Sandhya
 
GauravGargGauravGarg
Hi,

Could you generate debug logs for event firing emails?

Possible way to send out emails:
  1. Workflow
  2. Process Builder
  3. Apex
  4. Escalation Rules
  5. Assignment Rules
Thanks,
Gaurav
Jenny Chen 9Jenny Chen 9
Hi, 

Thank you all for your help. I did find a workflow rule doing this on the custom object. 

Thanks,
Jenny