Loading tutorials
HttpRequest is, and have read the previous chapter's refresher on Http, HttpRequest and HttpResponse. Here you replace a hard-coded URL and secret with a Named Credential.2 min readHttpRequest callout. A trigger cannot call out synchronously, so the work moves to a future method. A future method is a static method that Salesforce runs later, in its own tra2 min readTrigger.new and Trigger.newMap hold, and have seen a basic Queueable class. It covers what to hand to the asynchronous job and why.2 min readTest.startTest() and Test.stopTest() reset governor limits, and have read the earlier chapters on Queueable callouts from triggers.2 min readAccountSyncJob Queueable from the earlier chapters and read a basic SOQL query. Once the callout runs asynchronously, the trigger no longer shows you whether it worked. You need to check the job yourself.2 min read@future(callout=true) and Queueable versions of the pattern. Here you decide which one to use.2 min read