Data Converter

Updated 1 week ago by Karan

In this step-by-step guide, you will understand how to use a data converter (pipe) for optimizing the data in the relevant format.

Usage

By default, all data is sent as a string, but the data converters can be used to send the data in the appropriate format. For example, if the Airtable column is configured as a number, it should be sent in that format only.

The pipe is used to convert data format in various task nodes of a Byteline flow.

Pipe Converter

The pipe| can be placed where the default data string ends for converting such data into the relevant format.

For example,

@.data.created | datetime

Here, you can see that the input data fetched with the syntax is @.data.created and has been instructed to convert intodatetimeformat by using a pipe.

Number

To convert input data to numerical format use the syntax :

${input.field1}| number

Boolean

To convert input data to boolean format use the syntax :

${input.field1}| bool

DateTime

To convert input data to datetime format use the syntax :

${input.field1}| datetime

Thus you can use a data converter in your nodes to set them into the right format. Feel free to connect us for any doubt. Develop fast!


How did we do?