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
Praveena SFDCPraveena SFDC 

Turn off Approval Email notification from Apex

I currently have a standard approval process with different levels of approvals which are not on the same level and if incase at any level an approval is rejected then on resubmission the record goes to the person who has rejected the record and the intial approval steps gets autoapproved (I currently have code written in apex for the auto approval).

But my issue is when the record is getting auto approved on resubmission it is also sending the email notifications too. Is there a way to stop sending those notifications using Apex? Thanks.
Brian Cherry FWIBrian Cherry FWI
Why not set-up the resubmission approval to a queue if it's already been approved, assign no users to the queue and just update the approval notes to keep the record? Sadly you can't turn them off unless you do it for the entire org then manually handle the emails via email alerts which isn't going to be ideal.