Skip to main content
The 2024 Developer Survey results are live! See the results

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
0 votes
0 answers
220 views

Callback on completion of AsyncApexJob

Is there a way to have Apex code execute when an asynchronous job finishes? I want to solve this problem without polling (which seems to be the dominant solution).
Mossi's user avatar
  • 3,986
0 votes
0 answers
417 views

Running Tests in Production WHILE Deploying to Production - Row Lock Error

In our test classes, we utilize testSetup methods that create and insert records in preparation for their use in the test methods of the class. I found today that if I'm running tests in Production ...
KB145's user avatar
  • 876
0 votes
1 answer
328 views

PHP Fuel SDK - Sending TriggeredSend Asynchronously

It does not appear that I can send an asynchronous TriggeredSend call to the system with the PHP SDK. Am I missing something? I can add Priority to the props which gets attached to the ...
ModernDeveloperLLC's user avatar
-1 votes
2 answers
1k views

Design Patterns for Asynchronous Apex

Background After listening to Dan Appleman's talk: Dreamforce 13: Design Patterns for Asynchronous Apex I went to look at the code: Sample Code: Design Patterns for Asynchronous Apex ...
Robs's user avatar
  • 9,406
-1 votes
1 answer
398 views

LWC - How to populate component when the page just load

I'm using Custom Setting to remember what user set for that specific setting. So when the component load, it will fetch values from Custom Setting. (1)If there is no value => Column will generate ...
Pam's user avatar
  • 107
-1 votes
1 answer
202 views

How to limit the asynchronous job running in salesforce [duplicate]

I am using Queueuable Interface in trigger like this, System.enqueueJob(new testobjectmethod(trigger.new,trigger.oldMap)) My Queueuable class: public class testobjectmethod implements Queueable,...
user avatar
-1 votes
1 answer
281 views

Continuous integration using REST api in vf page

I have been asked a question in continuous integration. First let me give some background. In continuous integration api call we can call 3 webservice urls at a time and process response in another ...
Deepak Agarwal's user avatar
-1 votes
1 answer
817 views

Future method use response to make update on Opportunity object

I have a future method where I make an external REST api call which gets kicked off in an after update trigger on the Opportunity object. When the results come back, I deserialize the JSON and then ...
user1669296's user avatar
-1 votes
1 answer
27 views

How to update when Lead is updated, insert related Individual(lookup standard), then update Lead with related Lookup individual on lead

I have a after update trigger on lead, so when the triggering fields like Name,Birthday are updated, the trigger fires and inserts related individual record where there is a lookup from Individual to ...
Janardhan Kumar's user avatar
-1 votes
1 answer
353 views

Pass Http Get and Http Post as asynchronous apex in order [closed]

My requirement is to pass data from my org (Salesforce) to external org (SAP S4). I have successfully made the class for integrating both. However, I need to pass this class in a trigger and since it ...
Capt Shaunz's user avatar
-1 votes
2 answers
298 views

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
73 views

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
50 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 ...
Rahul Allada's user avatar
-2 votes
1 answer
1k views

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
109 views

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
  • 766
-2 votes
1 answer
7k views

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
159 views

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
200 views

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
754 views

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
2k views

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 PH's user avatar
  • 2,344
-3 votes
1 answer
77 views

System.FinalException: SObject row does not allow errors on Batch

i am trying to create a batch that prevent from creating duplicate records. This is my classes and trigger Class batchCheckDoublonContact : global class batchCheckDoublonContact implements Database....
Amir Bouzid's user avatar
-3 votes
2 answers
24 views

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

1
3 4 5 6
7