4. Invoke Callout3()
1. Overview
invokeCalloutV3() is the latest and modern outbound callout method in Skyvva, based on Interface API Version V3.
It is designed for enterprise-grade integration scenarios, supporting multiple adapters, advanced message structures, and scalable asynchronous processing.
This method is the recommended approach for all new integrations.
2. Purpose
The main purpose of invokeCalloutV3() is to:
- Enable modern outbound integration from Salesforce to external systems
- Support flexible message structures (template, custom, and sObject-based)
- Provide full asynchronous processing capabilities
- Support enterprise integration patterns with scalability and reliability
3. When to Use invokeCalloutV3()
Use invokeCalloutV3() when:
- You are building new integrations
- You require REST, SOAP, or SAP PI/PO modern adapter support
- You need Message Type Template (IStructure) support
- You need Custom Message Type or sObject-based integration
- You require Queueable or Batch processing
- You are working with Interface API Version V3 architecture
4. Interface API Version
| Feature | Value |
|---|---|
| Interface API Version | V3 |
5. Supported Execution Modes
| Mode | Support |
|---|---|
SYNC | ✅ Supported |
AUTO | ✅ Supported |
FUTURE | ✅ Supported |
QUEUEABLE | ✅ Supported |
BATCH | ✅ Supported |
6. Adapter Support
invokeCalloutV3() supports modern integration adapters:
| Adapter Type | Support |
|---|---|
| REST Adapter | ✅ Supported |
| SOAP Adapter | ✅ Supported |
| SAP PI/PO Adapter | ✅ Supported |
| SFDC2SAPPI Legacy Adapter | ⚠️ Limited (legacy compatibility only) |
7. Message Structure Support
invokeCalloutV3() supports multiple message formats:
7.1 Message Type Template (IStructure)
- Standardized integration templates
- Reusable mapping configuration
- Enterprise governance support
7.2 Custom Message Type
- Flexible payload structure
- Custom integration formats
- Dynamic transformation support
7.3 Salesforce sObject Support
- Direct mapping from Salesforce objects
- Account, Contact, Opportunity, Custom Objects
- Simplified outbound configuration
8. Parameters
invokeCalloutV3() requires the following parameters:
| Parameter | Description |
|---|---|
| Integration Name | Name of integration configuration |
| Interface Name | Outbound interface name |
| IDs | Salesforce record IDs |
| Mode | Execution mode (SYNC, AUTO, FUTURE, QUEUEABLE, BATCH) |
| CallOutControl | Configuration object for processing behavior |
9. CallOutControl Configuration Example
skyvvasolutions.CallOutControl c \=
new skyvvasolutions.CallOutControl();
c.returnXml \= true;
c.returnListRecord \= true;
c.isCreateMessage \= true;
c.actionDoIntegrate \= true;
10. Sample Apex Script for invokeCalloutV3()
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
12. Key Characteristics
- Based on Interface API Version V3
- Fully supports modern enterprise integration architecture
- Supports multiple message formats:
- Message Type Template (IStructure)
- Custom Message Type
- Salesforce sObject mapping
- Message Type Template (IStructure)
- Supports all execution modes:
- SYNC / AUTO / FUTURE / QUEUEABLE / BATCH
- SYNC / AUTO / FUTURE / QUEUEABLE / BATCH
- Supports modern adapters:
- REST, SOAP, SAP PI/PO
- REST, SOAP, SAP PI/PO
- Designed for scalability, flexibility, and enterprise integration
13. Summary
invokeCalloutV3() is the modern Skyvva outbound callout method designed for enterprise integration scenarios.
It provides:
- Full V3 architecture support
- Flexible message structures
- Multi-adapter compatibility
- Advanced asynchronous processing
- Scalable integration design