SK SKYVVA Documentation

5. Put URL parameter to the SFDC2SAPPI adapter

A new URL parameter is created to pass the URL as a string and append to the endpoint string in the adapter. You can put any parameter to the URL as a URL parameter value. The adapter type, SFDC2SAPPI, execute callout base on the endpoint of the receiver. We need to construct the URL query parameter in the endpoint for the adapter SFDC2SAPPI. You can enter the URL query parameter manually into the URL in the parameter endpoint. You have two options to pass the URL parameter to the endpoint:

Pre-requisite to use this feature

How to pass URL parameter To pass the URL parameter through the method invokeCallout2(), let look at some steps to be follow:

[aux_code language="javascript" theme="tomorrow" title="" extra_classes=""] skyvvasolutions.CallOutControl c=new skyvvasolutions.CallOutControl(); c.returnListRecord=true; String param = '?QueueId='; List ids=new List(); List l=[select Id from Account limit 1]; for(integer i=0;i ids.add(l[i].Id); c.param.put('SKYVVA__URL_PARAM',param + l[i].Id+''); skyvvasolutions.CallOutResponse r = skyvvasolutions.IServices.invokeCallout2('Testing Integration', 'Test SFDC2SAPPI adapter',ids,'AUTO',c); ids.clear(); } [/aux_code]

Open this article in the interactive viewer →