Introduction #
SKYVVA integration application implemented the ‘executeInterface()’ API bringing significant enhancements to interface execution, particularly focusing on internal Apex execution and inbound interface handling. Here’s a detailed breakdown of its functionalities:
- Internal Apex Execution: The API facilitates the execution of interfaces through internal Apex methods, ensuring robust integration capabilities within the Salesforce environment. This method enables streamlined processing directly within Salesforce, optimizing efficiency and reliability.
- Inbound Interface Handling: Specifically designed to address inbound interface scenarios, the ‘executeInterface()’ API empowers users to handle incoming data and processes efficiently. Whether it involves data processing, this functionality ensures smooth handling of inbound interactions.
- Support for Synchronous and Asynchronous Modes: With support for both synchronous and asynchronous execution modes, the API offers flexibility to cater to diverse integration requirements. This capability allows users to adapt interface execution based on specific use cases, enhancing versatility and scalability.
The following parameters are useful:
- Integration: Name of the integration
- Interface: Name of the interface
- Mode = {None, Synchronous, Asynchronous}. If None is used then the mode is taken from the interface setting (field ‘Processing Mode’)
- List of sObject Id: used in cases e.g. inbound interface. This is a kind of reprocessing when we have the Ext ID and can pass it to the API.
Use Case
For the inbound interface,
- Execute interface from Internal Apex Execution:
- The SKYVVA integration app processes XML, JSON, and CSV formats synchronously/asynchronously, enhancing Salesforce data management seamlessly.
- InBound Apex Execution:
- SKYVVA enables the execution of interfaces with XML, JSON, and CSV formats internally, streamlining inbound data integration within Salesforce effortlessly.
New method executeInbound() to execute inbound interface from Apex code
Required step:
- Create an Inbound Integration
- Create Message Type
- Create an Inbound Interface -> setting Processing Mode: Synchronous -> Do Mapping
- Go to Message Monitor
- Create MetaData Provider, Repository, Source/Target Message Type
- Define Ext Key
- Do Mapping
- Save
- The SKYVVA integration application in Salesforce for executing internal, inbound Apex interface executions with proper JSON format.
- Manage integration tasks within Salesforce, enhancing efficiency and facilitating smooth data flow.
- Enhance workflow automation by executing inbound interfaces using our application’s robust internal Apex execution capabilities.
- Ensure data integrity and accuracy through streamlined execution processes within Salesforce’s ecosystem using SKYVVA integration appliation.
Go to the Developer Console
- Click on Execute
- requestPayloadFormat=’json‘
skyvvasolutions.InboundExecuter.InboundControl ctrl=new skyvvasolutions.InboundExecuter.InboundControl();
ctrl.integrationName='API-Integration';
ctrl.interfaceName='API-Interface';
ctrl.requestPayloadFormat='json';
ctrl.payLoad='[{"Name":"Apple","City":"Phnom Penh","Country":"Cam","AccountNumber":"001"},{"Name":"Coca02","City":"Phnom Penh","Country":"Cam","AccountNumber":"002","Contact":[{"FirstName":"Chandy","LastName":"Long1"},{"FirstName":"Chandy","LastName":"Long"},{"FirstName":"Chandy","LastName":"Long2"},{"FirstName":"Chandy","LastName":"Long5"},{"FirstName":"Chandy","LastName":"Long3"}]}]';
ctrl.mode='Synchronous';
ctrl.csvSeparator=null;
skyvvasolutions.InboundExecuter.InboundResult result=skyvvasolutions.InboundExecuter.executeInbound(ctrl);
System.debug('>hasError:'+result.hasError);
System.debug('>errorMessage:'+result.errorMessage);
System.debug('>groupMessage:'+result.groupMessage);
- Go to Message Monitor and click on the search button
- XML formatted execution ensures compatibility in data transmission, maintaining integrity throughout the integration process.
- Execute interface via SKYVVA Internal InBound Apex Execution integration within Salesforce, enhancing data flow and operational efficiency.
- Our solution facilitates streamlined execution of interface operations, optimizing Salesforce functionality and empowering users with comprehensive integration capabilities.
Go to the Developer Console
- Click on Execute
- requestPayloadFormat=’xml’
skyvvasolutions.InboundExecuter.InboundControl ctrl=new skyvvasolutions.InboundExecuter.InboundControl();
ctrl.integrationName='API-Integration';
ctrl.interfaceName='API-Interface';
ctrl.requestPayloadFormat='xml';
ctrl.payLoad='A002Coca01sta1MDEA002Coca02ThidaPhich';
ctrl.mode='Synchronous';
ctrl.csvSeparator=null;
skyvvasolutions.InboundExecuter.InboundResult result=skyvvasolutions.InboundExecuter.executeInbound(ctrl);
System.debug('>hasError:'+result.hasError);
System.debug('>errorMessage:'+result.errorMessage);
System.debug('>groupMessage:'+result.groupMessage);
- Go to Message Monitor and click on the search button
- CSV Integration: Execute interface from internal, inbound Apex for seamless CSV data exchange within Salesforce using SKYVVA integration.
- Data Synchronization: Synchronize data bi-directionally using our application’s internal Apex execution for inbound interfaces.
- Real-time Integration: Achieve real-time data integration within Salesforce by executing interfaces internally through SKYVVA’s advanced capabilities.
Go to the Developer Console
- Click on Execute
- requestPayloadFormat=’csv‘
skyvvasolutions.InboundExecuter.InboundControl ctrl=new skyvvasolutions.InboundExecuter.InboundControl();
ctrl.integrationName='API-Integration';
ctrl.interfaceName='API-Interface';
ctrl.requestPayloadFormat='csv';
ctrl.payLoad='Name,BillingCity,BillingCountry,skyvvasolutions__AccID__c,LastName,FirstName'+
'\nAcc-1,PP-1,Cam-1,ID-1,LastName-1,FirstName-1'+
'\ncc-2,PP-2,Cam-2,ID-2,LastName-2,FirstName-2';
ctrl.mode='Synchronous';
ctrl.csvSeparator=',';
skyvvasolutions.InboundExecuter.InboundResult result=skyvvasolutions.InboundExecuter.executeInbound(ctrl);
System.debug('>hasError:'+result.hasError);
System.debug('>errorMessage:'+result.errorMessage);
- Go to Message Monitor and click on the search button
Summary #
Now users understand how our tool integrates the ‘executeInterface()’ API for CSV, XML, and JSON formats. Execute inbound interfaces via Apex, work with Salesforce integration, and further smoothly data processing.