SK SKYVVA Documentation

2. How to use XML payload with /V4/integrate?

Introduction

In this tutorial, we are using Postman as the client for testing the SKYVVA V4 API. The request payload can be XML or JSON and the response can be XML or JSON format. The response formats can be different from the request format, example the request is XML file format but the response can be JSON. Especially, this API we can parse the raw data that is the XML or JSON without convert to any style. Prerequired

Step-1 create Metadata Provider, Repository and generate MessageType

We should use the simple payload that is matched the real data structure, if we use the whole data to generate MessageType, sometimes the whole data can contain any special character that is affected by the logic for generating MessageType.

Step 2:  create Integration, inbound Interface, and do mapping Suppose we have created Integration now we need to create Inbound Interface

On the Interface, we need to choose the MessageType that is matched the payload. Example in my XML file begins with node “testROOT”, so the MessageType should choose “testROOT”.

Here we need to map from the Source node to Target first, and then field to field. We can choose any node as the root to map to target that depends on the business requirement.

Step 3 Create a connected app on Salesforce Navigate to the Setup gear icon

Step 4 Configuration on Postman Salesforce provides two API depend on the type of Organization: Sandbox and Production. The method that for these API is POST. Sandbox: https://test.salesforce.com/services/oauth2/token

Production: https://login.salesforce.com/services/oauth2/token

On the endpoint, we need to put Instance URL and SKYVVA V4 API

Example: https://energy-drive-6498-dev-ed.cs101.my.salesforce.com

In this example, we are posted XML data and respond as XML too.

Summary

Finally, we have learned how to use SKYYVA API with V4 API that is used Postman as the client-side and also learn about to generate Salesforce access token in Postman. We have understood the Salesforce connected app creation and generating MessageType for do mapping on inbound Interface.

Open this article in the interactive viewer →