Questions tagged [asynchronous]

An asynchronous process is a process or function that executes a task "in the background" without the user having to wait for the task to finish. Typically, you will use Asynchronous programming for callouts to external systems, operations that require higher limits, and code that needs to run at a certain time.

Filter by
Sorted by
Tagged with
-1 votes
2 answers

Calling one asynchronous apex from another [closed]

Can anyone provide me when we can call an asynchronous apex from another specially between when they are not of same type like schedulable from future or batch from schedulable,etc
Shesha's user avatar
  • 9
-2 votes
2 answers

Batch versus Future ? which way should we prefer in below requirement? [closed]

We have 100 account records ,we need to send the each of account record to make call-out. Which would be preferable and why ? If future is not preferable and why ? We can do call outs making batch ...
Vineel's user avatar
  • 65
-2 votes
1 answer

Is there a way I can run an asynchronous batch class synchronously? [closed]

I know, it should not be done. But theoretically is it possible?
Gargi Gupta's user avatar
-2 votes
1 answer

AsyncApex Scenarios [closed]

I am writing a few Ques for which i have found conflicting answers on Internet. Also I have written my Answers after researching on Internet, but wasnt 100% sure, hence posting these here to clear ...
Mohit K's user avatar
  • 746
-2 votes
1 answer

Batch Apex Class to update lookup field

I really need help with my code. I am trying to update Account records with lookup field to right Pricebook2 based on Customer_Price_Group__c field on Account and Pricebook2. Customer_Price_Group__c ...
Dev098's user avatar
  • 1
-2 votes
1 answer

How to solve read time out error in Apex callout?

Hi all and thanks for reading Got this code: public class SendingZabbixServices{ @future(callout = true) public static void zabbixDoPostFuture(String jsonString, String endpoint){ ...
Nacho Zve De La Torre's user avatar
-2 votes
1 answer

Help in writing Asynchronous Batch Apex to avoid governor limit of 150 records

I have a function that has the DML operation inside the for loop due to which I am running into governor limit exception of 150 records. I read about batch apex on Salesforce discussion about not sure ...
LearningMacro's user avatar
-2 votes
1 answer

Which is a better approach when updating records using batch class, to place it in execute or finish method?

Sorry but I am new to this and I just wander, do you think it is better to put all the millions of records inside the Map object which is process by the execute method, however the dml where the ...
Kato's user avatar
  • 1
-2 votes
1 answer

System.AsyncException in trigger

Trigger Snippets: if (JIRA.currentUserIsNotJiraAgent()) { if(System.isFuture() == false || System.isBatch() == false || System.isScheduled() == false) { //Check, If Not in any Async Apex ...
Annappa's user avatar
  • 2,312
-3 votes
2 answers

While trying to run ScheduleApex it give error

//This is code global class Schedule1 Implements Schedulable{ global void execute(SchedulableContext sc){ List<Account> accounts=[SELECT ID,NAME,INDUSTRY FROM ACCOUNT WHERE NAME='...
Bikash Pradhan's user avatar

3 4 5 6