Using transform operations

With transform, you can do various operations on the input data to help you customize your workflow output or the data you send to the next action. You can apply a transform operation to any trigger or action input data.

About this task

The Transform feature eliminates the need to open the action to verify whether it contains a transform operation and is available in all supported actions.

A transformer can be tested only when linked to an action. If you want to reuse the same transformer with a different action, it cannot be tested separately as it remains connected to the original action. However, this limitation applies only to testing. During the actual workflow run, the transformer functions correctly in all actions where it is used.

Consider an example where you want to fetch all cards from a Trello board, and split the results into three chunks.

Procedure

  1. Add and configure the relevant trigger or action as usual.
    For this example, add the Trello connector to the canvas, select the Get Board Cards action, and configure the action.
  2. Add the next connector to the canvas and select the relevant action.
    For this example, add the Send an email action. On the action configuration window, you can see the output of the last action and/or the trigger along with the Transform option.
  3. Click the icon beside the Transform menu and select Add New.
    The action opens the Add new transform data window from where you can apply a transform operation to specific data by filling out the configuration form. In Transform Data, select the desired operation. For example, choose Chunk to divide the data into smaller segments.
  4. Click Done.
    The transform operation configuration window opens in the same screen, displaying the input fields for the selected operation.
  5. Provide relevant values in the input fields. To split the array of cards into three chunks, provide the cards array as input in the Array field and enter 3 in the Size field.
    The transform operation configuration window appears in the same screen, displaying the input fields for the selected operation.
  6. Click the Transform option.
    You see the name of the transform operation that you created, along with its output. You can pass this output to the next actions in your workflow.
  7. Click Next, test the action, and then return to the canvas.
  8. Configure the rest of the workflow based on your requirements and then click Save.
    Whenever the workflow is run, it fetches all cards from the specified Trello board, splits them into three sequential chunks, and sends the results to the designated email recipient.

What to do next

Similarly, you can apply any of the transform operations on your data to achieve data transformation.