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

Can Apex code delete time based workflow actions (e.g future email alerts in the queue) ?

I was wondering if anyone has tried deleting the time based workflow actions in the workflow queue through Apex trigger or Apex methods (e.g. delete the outgoing email alerts scheduled for a future date) ?


I know we can accomplish this through App setup menu (Setup-->Admin Setup--> Monitoring--> Time based workflows--> select records and click delete) but can we do this using Apex code ?

I don't think, it's possible.