I have to call a webservice from an external system each time a new record is created on Salesforce. The external webservice accepts a single record/object instance per callout.
If I do an after-insert bulk trigger, how will I do the callouts per record? Is doing callouts in a for loop advisable?
If many records are created at the same time, will I hit the callout limits? I see only 100 callouts allowed per transaction.
Any other suggestion on this? Continuation? Queueable?
Thank you.
async_request__c
object and these get processed serially via chained queueables with fallback to future/schedulable. If the callout fails, you have a built-in way to replay. see his book - chapter 7