Questions tagged [scheduled-apex]
Issues with writing, running, or testing scheduled Apex code, using the Schedulable interface.
919 questions
0 votes
0 answers
29 views
Scheduled jobs of Type Reporting Notification not coming
Recently, we were doing some deletion of scheduled jobs in our lower environment, unfortuantely now all the scheduled jobs are deleted. We have restored all manual scheduled jobs butscheduled jobs of ...
0 votes
1 answer
46 views
Scheduled Apex Doesn't Read New Custom Metadata
I have a scheduled apex class that calls a queueable. This runs daily to retrieve data from an external API, transforms the data, and upserts sObjects. Some of that data transformation relies on ...
1 vote
1 answer
99 views
Salesforce Scheduler: System.UnexpectedException: Access Blocked Session Security high assurance
I'm trying to deploy an apex class using vs code. The test is just testing the following schedule method: global without sharing class cbl_OfferDeactvationScheduler implements Schedulable { public ...
0 votes
0 answers
50 views
Platform Event is not subscribed in the target org
I am publishing the platform event in one salesforce org to another org though HTTP callout. The target org is listening to the event for the first record. i.e. If the source org publish 5 records, ...
0 votes
0 answers
30 views
How to test the abortion of Scheduled Apex?
How do I test a class that aborts scheduled apex jobs? public class ScheduledJobCleanup implements Schedulable{ public void execute(SchedulableContext SC) { for(AsyncApexJob job : [SELECT ...
0 votes
0 answers
39 views
I'm Trying to test my Scheduled Apex Class but Im getting : System.AsyncException: Maximum stack depth has been reached [duplicate]
I'm trying to create a Test class for a Scheduled Class that calls a Queueable Class But, it gives me a System.AsyncException: Maximum stack depth has been reached. error in the test class. Queueable ...
1 vote
1 answer
118 views
Multiple Outbound Calls resulting in errors
Within in our SF organization, I need to send API calls to another platform when certain records are updated in Salesforce. I've successfully created triggers and apex classes (utilizing @future) to ...
-2 votes
1 answer
132 views
Advantages of Scheduling through Apex than compared to the UI [closed]
I'm exploring the options for scheduling tasks within Salesforce, and I'm particularly interested in understanding the benefits of utilizing Apex for scheduling compared to using the built-in UI ...