Skyone
Skyone
English
English
  • Home
  • Data
    • Getting Started
      • Create an account
      • Recover Password
      • Quick Platform Guide
      • How to test the platform for free
      • Workspace
        • Creating a new Workspace
        • Find a Workspace
        • Sending an invitation to a Workspace
        • Editing a Workspace
      • Organizations
        • Creating an Organization
        • Organization Overview
        • Organization Management
        • Organization Monitoring
      • Settings and Preferences
        • Profile
        • Notifications
        • Usage and Billing
        • Users and Permissions
    • Modules
      • Module management
        • Creating a Module
        • Importing a Module
          • IAC Files - Integration as Code
        • Editing a module
        • Module Options
      • Settings and Operations
        • Module settings
          • Connectivity: Database
          • Connectivity: Email
          • Connectivity: REST
          • Connectivity: SOAP
          • Connectivity: File
          • Connectivity: RFC
          • Connected Account Management
        • Operations
          • Importing operations into REST Modules
          • Operation Management
        • Flows Using This Module
    • Monitoring
    • API Gateway
    • Terminals & Agent
      • Agent
        • Versions supported by Agent
        • How to Update the Agent Version
        • How to back up Agent files
      • Terminals
    • Data
      • Data Stack
        • Process Control
        • Data Stack Upload
        • File Actions
        • File Jobs
        • Data Job Parameters
        • Data Store
        • Data Share Features
        • ODBC
        • How to use the Data Engine Proxy
    • Integrations
      • Integration Management
        • Create integration
        • Import Integration
        • Edit Integration
        • Integration Options
        • Flows of this integration
      • Flows
        • Flow management
          • Creating a flow
          • Flow options
          • Flow Canva: configuring and editing the flow
            • Flow Canva: overview
            • Exception Handler
              • Exception Handler - Configuration
              • Exception Handler - Cases
            • Multicontext Flows
              • Example: Multicontext with an API Gateway
              • Example: Multicontext with a Time Trigger
            • Flow Settings
        • Triggers of a flow
          • API Gateway Triggers: Adding and Setting
          • AS2 Triggers: Adding and Setting
          • Queue Triggers: Adding and Setting
          • Flow Triggers: Adding and Setting
          • Time Triggers: Adding and Setting
          • Webhook Triggers: Adding and Setting
        • Tool Modules
          • AS2 Module
          • CSV Module
          • Data Transform Module
          • Data Balancer Module
          • EDI Module
          • Flow Call Module
          • IF Module
          • JavaScript Module
          • Log Module
          • Loop Do While Module
          • Loop For Module
          • Return Module
          • XML Module
          • Other Tool Modules
        • Module Header
        • Connecting components of a flow
        • Editing triggers and modules
        • Data Operations
          • Object Handling
            • Practical example: Handling variables
          • SMOP (Small Operations)
          • Parameterization rules
    • How to
      • Insert JSON into databases
      • Flattening: Data transformation using JSONata
      • How to use Form Data
      • Understanding recursion in JSONata
      • REST Module Output Consolidation
      • Isolated in execution: concept and application in variables
      • URL Parameters in API Gateway
      • Use case: API Gateway trigger parameters
      • Use case: Exception Handler in financial transactions
      • Use case: using Groups to manage access to flows
      • How to create a download endpoint and integrate with Power BI
      • Is it possible to use two triggers in a single flow?
      • How to set up WhatsApp in Skyone Studio
    • FAQ
    • GIGS: The complete guide
    • Glossary
  • Support
    • How do I request support?
    • Case Severity Levels
    • SLAs
    • Help & Resources
Powered by GitBook
On this page
  • Definition
  • Configuring the CSV module
  1. Data
  2. Integrations
  3. Flows
  4. Tool Modules

CSV Module

PreviousAS2 ModuleNextData Transform Module

Last updated 6 months ago

Definition

The "CSV" tool module, standard module for use in any flow, was created for converting data from the "CSV" file format to JSON and vice versa.

The "CSV" module consists of two operations, "Convert CSV to JSON" and "Convert JSON to CSV".

Configuring the CSV module

The "CSV" module appears in the Tools option when editing a flow. When added to a flow, it offers two operations:

Convert CSV to JSON: converts a spreadsheet in CSV to JSON format.

Convert JSON to CSV: converts a spreadsheet in JSON to CSV format

Convert CSV to JSON operation

This operation allows you to convert a CSV table with different items (products, customers, etc.) to JSON format, so that this information can be used later in the flow.

To use this option, choose "Convert CSV to JSON" and then click "Save".

If you click to edit the module, the following area will be displayed for configuring the variables:

Where:

  • Delimiter: CSV separator character, used to read the CSV and then create the JSON.

  • CSV CONVERTED TO JSON: here, after you click on the "Validate" button, the CSV converted to JSON format will be displayed.

Example CSV:

id,name,description,price,available
1,Jaleco,Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes,"R$ 999,99",true
2,Avental,Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes,"R$ 999,99",true
3,Touca,Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes,"R$ 999,99",true
4,Fronha,Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes,"R$ 999,99",true
5,Embalagem,Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes,"R$ 999,99",true
6,Porta talher,Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes,"R$ 999,99",true
7,Porta absorvente,Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes,"R$ 999,99",true

Convert JSON to CSV operation

This operation allows you to convert a JSON table with different items (products, customers, etc.) to CSV format, so that this information can be used later in the flow.

To use this option, choose "Convert JSON to CSV" and then click "Save".

If you click to edit the module, the following area will be displayed for configuring the variables:

Fields:

  • Delimiter: CSV separator character, used to create the file in this format;

  • Convert arrays: this option allows you to ignore or convert the arrays of a code in JSON to CSV format;

  • JSON: enter the code in JSON format that needs to be converted;

  • JSON CONVERTED TO JSON: here, after you click the Validate button, the JSON converted to CSV format will be displayed.

JSON example:

[
   {
      "id":1,
      "name":"Jaleco",
      "description":"Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes",
      "price":"R$ 999,99",
      "available":true
   },
   {
      "id":2,
      "name":"Avental",
      "description":"Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes",
      "price":"R$ 999,99",
      "available":true
   },
   {
      "id":3,
      "name":"Touca",
      "description":"Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes",
      "price":"R$ 999,99",
      "available":true
   },
   {
      "id":4,
      "name":"Fronha",
      "description":"Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes",
      "price":"R$ 999,99",
      "available":true
   },
   {
      "id":5,
      "name":"Embalagem",
      "description":"Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes",
      "price":"R$ 999,99",
      "available":true
   },
   {
      "id":6,
      "name":"Porta talher",
      "description":"Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes",
      "price":"R$ 999,99",
      "available":true
   },
   {
      "id":7,
      "name":"Porta absorvente",
      "description":"Jaleco de alta qualidade fabricado para atender aos clientes mais exigentes",
      "price":"R$ 999,99",
      "available":true
   }
]

Parameters

Both parameters will appear on the left-hand side of the configuration modal for each operation in the flow, as long as the operations are all connected by lines in the flow.

To finish configuring the module, click on "Save".

CSV: enter the text in CSV format that needs to be converted. If you prefer, click on the plus sign ( ) to configure a .

Each operation has its own parameter, which corresponds to the product of the conversion: JSON for the Convert CSV to JSON operation and CSV for the Convert JSON to CSV operation. When used, they produce the resulting code, which can later be manipulated by the module or by using a .

.

SMOP
Data Transformation
SMOP
Find out about the Module Header here
Definition
Configuring the CSV module
Convert CSV to JSON operation
Convert JSON to CSV operation
Parameters