Converter
Last modified: 10 February 2025This Block coverts edge data to a specific data format. Currently, only CSV is provided but we can add more options upon request.
Below is a Converter Block in Flow that gets data from an REST API call, converts it to CSV format before uploading it to an SFTP server.

The edge data from the API call is mapped to a new format, using a Structure before being uploaded to the SFTP server.
Click the tabs to see mapping configuration.
The data that is output from the edge after the mapping has been done

The Structure expected for data arriving on the edge. It is using the Structure **Game of Thrones Characters**, which is expected to be an array. This shows a powerful validation capability using the Zod syntax. Pressing **Create Structure from data" will use AI to generate this for you based on data that is found on the edge.

This shows how the Structure **GOT CSV Header** has been chosen as the edge output format. Below this is the the mapping from the source Structure to the Target structure. Pressing the **Guess mapping** button will use AI to have a go at peforming the mapping for you.

The converted data that is output from the Converter Block is shown below. You can see that the Structure field names have been used for the header row. This is then ready to be written to the SFTP server by the SFTP Block.
