Tutorial V2.41 (Lightning)

  1. Home
  2. Docs
  3. Tutorial V2.41 (Lightning)
  4. 39. How to do invoke callout using Queueable mode?

39. How to do invoke callout using Queueable mode?

What is Queueable mode?

As you know that, customer is as our priority, so we want to provide a quality tools for them. For callout, we want to enhance the performance in order to support other technique, which is “Queueable”. Queueable have added to “Auto” mode. In a new release “Auto” mode supports future, batch and queueable.

The configuring of Invoke callout using Queueable mode

To callout, using “queueable”, there are some steps should be follow:
1. Interface configuration

  • Choose outbound type
  • Asynchronous Processing mode
  • And choosing adapter

  • Navigate to Developer Console then click on Debug Menu and Open Execute Anonymous Window

  • Enter Apex code below then Execute the code

skyvvasolutions.CalloutControl control = new skyvvasolutions.CallOutControl();
control.returnXml = true;
control.actionDoIntegrate = true;
control.isCreateMessage = true;
System.debug(‘>>>>>>’+skyvvasolutions.IServices.invokeCallout2(‘Test_Integration’,’Outbound Interface’,new String[]{‘a0V6F00000ze6HMUAY’},skyvvasolutions.IServicesUtilConst.QUEUEABLE,control));

3 To check the result
After you done executed the code, you can either check the result in apex job and
Message monitoring.
– Check in Apex Job

Check on Message Monitoring

Was this article helpful to you? Yes No

How can we help?