SK SKYVVA Documentation

How to use the executeInterface() method to execute the inbound interface by Developer Console?

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:

The following parameters are useful:

Use Case (Inbound)

The SKYVVA integration app processes XML, JSON, and CSV formats synchronously/asynchronously, enhancing Salesforce data management seamlessly.

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:

Go to the Developer Console

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 the Developer Console

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 the Developer Console

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);

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.

Open this article in the interactive viewer →