New answers tagged

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