SK SKYVVA Documentation

3. Invoke callout2()

1. Overview

invokeCallout2() is an extended outbound callout method in Skyvva based on Interface API Version V2.

It is designed to improve the legacy invokeCallout() by adding support for asynchronous processing modes while still maintaining compatibility with older SAP PI integration architecture (SFDC2SAPPI).

This method is

please help write a document only invokeCallout2()?

Skyvva Outbound Callout Method – invokeCallout2() (V2 Extended)

1. Overview

invokeCallout2() is an enhanced outbound callout method in Skyvva based on Interface API Version V2.

It extends the original invokeCallout() functionality by introducing asynchronous processing capabilities while still remaining within the legacy V2 integration architecture.

This method is mainly used for SFDC to SAP PI (SFDC2SAPPI) integrations where more flexible execution modes are required.


2. Purpose

The main purpose of invokeCallout2() is to:


3. When to Use invokeCallout2()

Use invokeCallout2() when:


4. Limitations

invokeCallout2() has the following limitations:


5. Supported Interface API Version

FeatureValue
Interface API VersionV2

6. Supported Execution Modes

ModeSupport
SYNC✅ Supported
AUTO✅ Supported
FUTURE✅ Supported
QUEUEABLE✅ Supported
BATCH✅ Supported

7. Adapter Support

Adapter TypeSupport
SFDC2SAPPI Adapter✅ Supported
REST Adapter❌ Not Supported
SOAP Adapter❌ Not Supported
SAP PI/PO Modern Adapter❌ Not Supported

8. Parameters

invokeCallout2() requires the following parameters:

ParameterDescription
Interface NameName of the outbound interface
Integration NameName of the integration configuration
IDsSalesforce record IDs
ModeExecution mode (SYNC, AUTO, FUTURE, QUEUEABLE, BATCH)
CallOutControlConfiguration object for processing behavior

9. CallOutControl Configuration Example

skyvvasolutions.CallOutControl c=new skyvvasolutions.CallOutControl();
c.returnxml=true;
c.returnListRecord=true;
c.iscreatemessage=true;

10. Sample Apex Script for invokeCallout2()

skyvvasolutions.CallOutControl c=new skyvvasolutions.CallOutControl();
c.returnxml=true;
c.returnListRecord=true;
c.iscreatemessage=true;
List<String> lId = new List<String>();
for(Account a : [SELECT Id FROM Account]){
    lId.add(a.Id);
}
skyvvasolutions.IServices.invokeCallout2('IntegrationName','InterfaceName',lId, 'QUEUEABLE', c);

11. Processing Flow

image

12. Key Characteristics


13. Summary

invokeCallout2() is a V2 extended outbound callout method that improves upon invokeCallout() by adding support for asynchronous processing.

It is best suited for:


14. Recommendation

Open this article in the interactive viewer →