Linked Questions

32
votes
2answers
7k views

Is there any way to unschedule an apex scheduled job programmatically?

Is there any way, either using apex or the API to unschedule a scheduled job?
36
votes
2answers
4k views

Ghost Schedulable Classes Blocking Deployment

Recently I've been running into issues where deployments were blocked due to a Schedulable job pending or in progress when I'd already cleared the Schedulable job from that class. Any tips for ...
7
votes
2answers
4k views

Deleted scheduled jobs still appearing?

I have a legacy process that has created about 2000 scheduled jobs over 12 months. They are all appearing in the Scheduled Jobs list in the UI. However, when I query the CronTriggers object, I see ...
7
votes
4answers
858 views

What is the best approach to mass create records from a button click?

My requirements are that I have to create a class that creates 400 to 600 records on a custom object once a button is clicked. I figure the best approach is to create a static webservice method that ...
1
vote
3answers
1k views

Deploy APEX without running all tests

I have 20 scheduled APEX classes, and every time I want to change one or deploy new APEX I get an error for every Scheduled APEX test class like this: Failure Message: "System.AsyncException: The ...
2
votes
1answer
2k views

Can a schedule be executed from future method?

One cannot execute a batch from a future annotated method. It is also impossible to have a trigger reacting to changes in future calling a batch. I cannot find if it is possible to execute a schedule ...
1
vote
1answer
1k views

How to manage the governor limit : Maximum number of Apex classes scheduled concurrently : 100

I launch a batch which call a lot of scheduled job. But I reach the governor limit : Maximum number of Apex classes scheduled concurrently : 100 I'm wondering what happens when this limit is ...
0
votes
1answer
1k views

Move EmailMessage's attachments from one Case to another

Here's my use case: Existing logic: When an email with attachment is processed by email2case handler, case (Case A) gets created followed by email message and attachment resides with the email ...
1
vote
2answers
1k views

Modify batch class already in schedule

How can I modify a batch class that is already placed in a schedule. I have deleted the Scheduled job and still getting error to modify the corresponding batch class. Can someone please help me here? ...
1
vote
2answers
724 views

Time based workflow to send email alert based on lead Status in approval process

My approval process works on leads when a role(Eg salesrep role) based user submits records for sequential approval from different role based users in a queue. As per my business i am suppose to ...
2
votes
1answer
302 views

Scheduled batch job from InstallHandler and further upgrades of managed package

As I understand the further upgrade can fail if we try to update the class which already has scheduled job in the managed package, right?
0
votes
0answers
557 views

Any work around to run 100+ jobs run or way

While saving 100+ jobs at a specified time i am getting error "You have exceeded the maximum number (100) of Apex scheduled jobs" If i want to use one scheduler to run all , we gonna have two issues. ...
1
vote
2answers
285 views

Trigger on Casesolution object

I am looking to update a Case field whenever a existing solution is associated to a case.. I realized that I cannot write trigger on Casesolution object and in sfdc developers forum, I found one more ...
0
votes
0answers
399 views

You have exceeded the maximum number (100) of Apex scheduled jobs [duplicate]

Is there any workaround to overcome the above governor limit without aborting the job. Thanks !