Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
6 votes

How to make a call out after every DML in batch

The basic answer is "you can't." DMLs block callouts, so if you need this kind of behavior, you have to arrange an alternative solution. I solved this very problem in a different manner once....
sfdcfox's user avatar
  • 494k
3 votes

How to make a call out after every DML in batch

The obvious answer is to invoke a future method or enqueue a Queueable that does the callout. You'd call or enqueue with the required details after each DML in execute. Obviously the future method or ...
Phil W's user avatar
  • 36.7k

Only top scored, non community-wiki answers of a minimum length are eligible