New answers tagged future
1
Salesforce has restriction that future methods cannot be called from Batch class.It will throw error "FATAL ERROR: Future method cant be called from future or Batch".
To avoid this Queueable Apex is the best option, it is a hybrid model of Future and Batch apex which supports getting called from batch apex and even from future.
You then have ...
1
As hinted by this article and as explained in this previous Q&A, a trigger for an SObject (rather than Platform Event) is invoked with up to 200 records at a time. If you have more than 200 records of the same object type in your DML insert/upsert/update then the trigger is called multiple times with different chunks of the DML records.
You then have ...
Top 50 recent answers are included
Related Tags
future × 383apex × 227
trigger × 102
callout × 86
batch × 51
unit-test × 37
asynchronous × 37
scheduled-apex × 25
visualforce × 17
governorlimits × 14
rest-api × 13
webservices × 13
queueable-apex × 13
queueable-interface × 11
schedulebatch × 10
class × 9
dml × 9
httprequest × 9
process-builder × 8
invocable-method × 8
asyncapexjob × 8
json × 7
exception × 7
httpcalloutmock × 7
method × 7