Linked Questions

2
votes
1answer
11k views

Scheduled apex to run every 10 minutes [duplicate]

I need to schedule the class below to run every 10 minutes. What changes do I need to make to my class below? global class Change_Inc_To_Resolved Implements Schedulable{ global void execute (...
0
votes
1answer
2k views

how to set apex scheduler every 5 minutes [duplicate]

I have the scheduler class, when I was about to set the Apex scheduler, I noticed that I can only select the time which will be every hour but i need to run it every 5 minutes, can you give me some ...
2
votes
1answer
614 views

“Every 30 min” cron expression runs only hourly [duplicate]

I have a Lightning Component where users can choose how often an Apex Batch should be run. As options, I want to allow 30min, hourly and daily. Changing that should modify the CRON expression of a ...
0
votes
1answer
92 views

Scheduling is not working? [duplicate]

this is my apex class for scheduling to run every 30 min.but when i scheduled in salesforce it will run after one hour but i need to run my scheduled class for every 30 mins.anyone help me to gohead ...
0
votes
0answers
12 views

Get bulk docusign envelope status via polling [duplicate]

I have a bulk number of envelope Ids and it is increasing day by day. What I am going to do is, I am going to pull all the envelope statuses (except the voided and completed envelopes) in a scheduler ...
24
votes
2answers
5k views

How to run Apex code every 5 minutes in 2016?

From a naive read of these questions and answers: 2012 - Are there best practices to get scheduled apex scheduled to run faster than once per hour? 2013 - What will be the cron expression for ...
3
votes
1answer
3k views

System.AsyncException: The Apex job named “Scheduled Job0” is already scheduled for execution

when i execute this schedule apex class from developer console the class is scheduled at 4 different timings as queue. when "schedule Job2" running i got this exception in debug log shows "|...
1
vote
1answer
2k views

What should be a good aproach to retry a web service callout?

Today i recived an exception mail saying this : Exception Message: Upsert failed. First exception on row 0; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record: [] I ...
2
votes
1answer
2k views

Third party API has callout time limits: how to catch with error handling, and how to control callout timing?

The third party API I'm working with (Act-On, a marketing software), has a limit of 5 callouts per minute in their sandbox. Unfortunately for me, some of my code requires that I loop through a series ...
2
votes
1answer
1k views

How to call Controller Extension and its method within Schedule Class

I have the following apex class: public with sharing class AssignPermissionSet{ List<PermissionSetAssignment> p=new List<PermissionSetAssignment>(); private PermissionSet per; private ...
0
votes
2answers
261 views

Bug? Same Batch Can Be Run From Cron & Schedule Apex

I have come across a strange case where the same batch job was running with two different users and went in to dig upon and found that one was scheduled via Schedule Apex screen and another one using ...