SK SKYVVA Documentation

2. How to use Custom Payload Class for Callout Row CSV?

Introduction

By the end of this tutorial, you will be equipped to customize your payloads and export data seamlessly, leveraging the robust capabilities of the SKYVVA Integration App. Let's dive in and start optimizing your data export processes!

Prerequisites

By meeting these prerequisites, you'll be well-prepared to set up and manage integrations using the SKYVVA integration app and the Agent Control Board.

Custom Payload Class for Callout Row CSV(Outbound)

Steps:

Create new Integration by following the guide, a link is given below: –  What is an integration and how to create it?

Go to Setup

global class CustomAccountOutFileAdapter extends skyvvasolutions.V3OutboundPayloadBuilder{ global override Object createPayload(Map<String,String> mapRef, List<V3OutboundUtils.MessageTree> msgTrees){ //String a; List<String> records = new List<String>(); records.add('Tabelle;SFID;ParentSFID;ParentTabelle;SageID;FeldName;Wert;IsNull'); Account acc = [select id,Name,AccountNumber,Site,AccountSource,Description,BillingCity,BillingCountry,BillingPostalCode,BillingStreet from Account where Id='0019b00000OaufPAAR']; //if (acc != null) // a = acc.id; records.add('Account;'+acc.Id+';ParentTabelle;SageID;Name;'+acc.Name+';false'); records.add('Account;'+acc.Id+';ParentTabelle;SageID;AccountNumber;'+acc.AccountNumber+';false'); records.add('Account;'+acc.Id+';ParentTabelle;SageID;Site;'+acc.Site+';false'); records.add('Account;'+acc.Id+';ParentTabelle;SageID;AccountSource;'+acc.AccountSource+';false'); records.add('Account;'+acc.Id+';ParentTabelle;SageID;Description;'+acc.Description+';false'); records.add('Account;'+acc.Id+';ParentTabelle;SageID;BillingCity;'+acc.BillingCity+';false'); records.add('Account;'+acc.Id+';ParentTabelle;SageID;BillingCountry;'+acc.BillingCountry+';false'); records.add('Account;'+acc.Id+';ParentTabelle;SageID;BillingPostalCode;'+acc.BillingPostalCode+';false'); records.add('Account;'+acc.Id+';ParentTabelle;SageID;BillingStreet;'+acc.BillingStreet+';false'); return String.join(records,'\n'); } }

Navigate to AGENT Control

Create an Interface

–  What is an Interface and How to create it?

Navigate to the Interface tab and select the interface

[su_box title="Result:" box_color="#2a8af0" title_color="#000000"]After clicking Manual Process for the callout record, you get the payload Row CSV file, based on the Custom Class you have created. [/su_box]

[su_box title="Note" box_color="#E4080A" title_color="#000000"]This Custom Class is an example only used for a callout record, as we have defined a Record or Field in the Custom Class so there is no need for Mapping.[/su_box]

Summary

Now users understand this tutorial explains how to export Row CSV using an Agent File Adapter with a Custom Payload Class in the SKYVVA integration app, guiding you through setup and configuration to meet specific business data handling needs.

Open this article in the interactive viewer →