asked 51.9k views
3 votes
To make a callout from a trigger, you must call a class method that runs asynchronously, which is also known as one of these?

1) Future method
2) Batch Apex
3) Queueable Apex
4) Scheduled Apex

asked
User CamilB
by
8.2k points

1 Answer

5 votes

Final answer:

To make a callout from a trigger, you can use a Queueable Apex class method to run it asynchronously.

Step-by-step explanation:

To make a callout from a trigger and run it asynchronously, you would need to use a Queueable Apex class method. Queueable Apex allows you to submit jobs to the Asynchronous Apex platform for processing at a later time. It provides a way to perform non-blocking operations from triggers.

answered
User KodeWarrior
by
8.4k points