-
Notifications
You must be signed in to change notification settings - Fork 456
QueueableWithCalloutRecipes
pozil edited this page May 14, 2024
·
13 revisions
Demmonstrates the use of the Queueable interface to make
callouts. The methods in this class are called by the system at run time.
To enqueue this job and see it's results, use System.enqueueJob(new QueueableWithCalloutRecipes());
More on the Queable interface:
https://sfdc.co/queueable-apex
Implemented types
Queueable , Database.AllowsCallouts
Group Async Apex Recipes
See RestClient
TESTVISIBLE
TESTVISIBLE
This is the only required method to implement Queueable. Queueable classes that also implement Database.allowsCallouts can make HTTP requests to external services. In this recipe we make a GET request to developer.salesforce.com
Param | Description |
---|---|
qc |
dependency injected by the system |
System.enqueueJob(new QueueableWithCalloutRecipes());
Internal custom exception class
Inheritance
QueueableWithCalloutRecipesException