Data Transform Module

Definition

The "Data Transform" module, the platform's standard module for use in any flow, was created for data transformation using JSONATA, thus facilitating the creation of complex operations.

JSONata is a lightweight language designed to query and transform JSON data structures.

The "Data Transform" module consists of a single operation that allows the manipulation of multiple data points and the transformation of these data into the desired format. This module always initializes the data parameter, which enables us, as seen in Object Handling, not only to obtain a data set but also to filter so that only a specific subset is invoked.

"Data Transform" is ideal for more complex data manipulations with an internal response within the flow. For less complex data manipulations, we recommend using an SMOP. For more complex data manipulations that require a response to an HTTP request, we recommend using the "Return" module.

Configuration of the Data Transform module

The "Data Transform" module appears in the Tools option when editing a flow. As soon as you click to add it, the modal opens for configuration:

Variable Configuration

In this section, under the "Data Source" tab, you will find the following fields:

  • Key: variable identifier

  • Value: type or drag a variable

  • Type: choose the most appropriate data type. Options are: text, number, boolean, object, and array.

If you prefer, you can fill in the Source JSON

After completing the configurations, click "Next".

Result

On this screen, you can execute and view the data transformation information and manipulate it with JSONata.

To finalize the module configuration, click "Save".

Last updated