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
anilgosaianilgosai 

Want to Stop running Schedule using Apex class

i nave a schedule which is running.

Now i Want to Stop running Schedule using Apex class.

 

Any idea???

 

Thanks 

Anil

Siddharth Birari.ax1164Siddharth Birari.ax1164

Refer

System.abortJob method, which will take the paramter as 'jobId'.

 

if you are making a batch call in the scheduler logic, then it is advisable to use system.abortjob after making call to batch or call it at the end.

 

Anil MeghnathiAnil Meghnathi

Thanks Siddharth  

for you kind help