SK SKYVVA Documentation

1. How to create MessageTypes from CSV file payloads

Introduction

Skyvva's metadata engine supports integration scenarios where systems exchange data through structured CSV payloads. When a CSV file is uploaded, the engine analyzes its header columns and automatically generates MessageTypes and Field Entries based on the detected structure — whether flat or hierarchical.

CSV is a widely used format for data exchange due to its simplicity and compatibility. In Skyvva, CSV payloads drive metadata creation through the Open Editor, enabling you to quickly define the data structures needed for Inbound and Outbound integration interfaces.

While CSV is a commonly used format across many data exchange scenarios, this guide focuses specifically on CSV file payloads uploaded through the Open Editor. Other use cases that involve CSV data, such as API responses or external data streams, are not covered here.

This guide covers two key scenarios: uploading a flat CSV (all columns in one object) and uploading a hierarchical CSV (columns spanning multiple related objects such as Account and Contact). Both result in reusable MessageTypes that can power your integration configuration.

image

Scenario 1: Upload CSV — Flat Structure

This scenario applies when your CSV contains data from a single object — for example, a list of Accounts. All columns map to one flat MessageType with a linear sequence of Field Entries.

Step 1 – Upload Payload

Upload a CSV file containing flat data (e.g., Accounts only):

AccNumber,AccName,AccBillingCity,AccCountry,AccDescription
A-2001,AccountTest1,Berlin,Germany,Test Description
image

Step 2 – Metadata Generation Result

Once saved, the page refreshes and displays the generated MessageType in the list view. Field Entries are created with sequentially assigned sequence numbers, one per CSV column header.

image

Navigate into AccountCSV MessageType to verify the Field Entries

image
Note: The generated Field Entries are now ready to use in the next step of your Interface configuration.

Scenario 2: Upload CSV — Hierarchical (Parent-Child) Structure

This scenario applies when your CSV contains data from two related objects — for example, Account (parent) and Contact (child). Rather than treating all columns as one flat MessageType, you define a parent MessageType and add child MessageTypes to represent the relationship between data objects.

Key difference from Scenario 1: After uploading the payload, you use the Open Editor tree view to manually assign which fields belong to the parent and which belong to each child node.

Step 1 – Upload Payload

Upload a CSV file containing hierarchical data (e.g., Accounts with related Contacts):

AccNumber,AccName,AccBillingCity,AccCountry,Cont_FirstName,Cont_LastName,Cont_Email
2001,Test1,Berlin,Germany,First_Test1,Last_Test1,info@mymail.com
image

Once the tree is displayed, AccountParent* is set as the root node. Click AccountParent → Edit on AccountParent to assign parent-level fields.

image image The Editor tree refreshes showing AccountParent and ContactChild configured. the form return to Editor tree image

Step 2 – Metadata Generation Result

Once saved, the Repository list refreshes and displays the parent and child MessageTypes:

image

Navigate into each MessageType to verify the Field Entries:

Note: The generated Field Entries for both AccountParent and Contact are now ready to use in the next step of your Interface configuration.

Summary

Open this article in the interactive viewer →