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
Anil MeghnathiAnil Meghnathi 

Want to Stop running Schedule using Apex class

I want to Stop running Schedule using Apex class.

Any Idea

 

Thanks 

Anil

Best Answer chosen by Admin (Salesforce Developers) 
Jia HuJia Hu
To stop execution of a job that was scheduled, use the System.abortJob method with the ID returned by the.getTriggerID method.

doc:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm

All Answers

Jia HuJia Hu
To stop execution of a job that was scheduled, use the System.abortJob method with the ID returned by the.getTriggerID method.

doc:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm
This was selected as the best answer
Anil MeghnathiAnil Meghnathi

Thanks Jia

For you kind help

Have a nice day

 

Anil