How it Works

Before we understand how each transform operation works, let's first glance through the procedure of adding the transform operation to your workflow.

You can apply a transform operation on any trigger or action input data. Let's understand this with the help of an example. Let's say you want to fetch all cards from a Trello board and then split the result into three chunks.

Note: All actions containing the Transform operation will have the icon. This will eliminate the need for you to open the action and check whether an action contains a Transform operation or not.

A transformer can only be tested when it is linked to an action. If you wish to reuse the same transformer with a different action, you won’t be able to test it separately, as it remains connected to the original action. However, this limitation applies only to testing; during the actual workflow run, the transformer will function correctly in all actions where it is utilized.

  1. Add and configure the relevant trigger/action as you would normally do. For the purpose of this example, we will add the Trello connector to canvas, select the Get Board Cards action, and configure it.

  2. Add the next connector to canvas and select the relevant action. For our example, we will add the Send an Email action.

    When you navigate to the action configuration window, you can see the output of the last action (and/or trigger) along with the Transform option.

  3. Click on the drop-down icon given beside the Transform menu and click the Add New button.
  4. This will open the Add New Transform Data window from where you can apply the transform operation on the specific data. To do so, add the following details in the configuration form that appears:
    • Transform Name: Provide a suitable name for the transform operation you want to apply.

    • Transform Data: Select the relevant transform operation you want to apply. For our example, we will select Chunk.

    Once you have selected the operation, click Done. The transform operation configuration window will appear in the same screen where you can see the input fields required to apply the selected transform operation.

  5. Provide relevant values in the input fields. Since we want to split the given array of cards into three chunks, we will add cards array as input for Array field and 3 as input for the Size field.

    This will take you back to the Send an Email action configuration window. Now if you click on the Transform option, you will see the name of the transform operation you created, along with its output. You can pass this output to the next actions in your workflow.

  6. Once you have entered the required details, click Next, optionally test the action, and then click Done to return to canvas.

  7. Configure the rest of the workflow as per your requirements and then click Save. Now whenever you run this workflow, it will fetch all cards from the specified board of your Trello account, split them sequentially in three chunks, and send it to the specified recipient through email. Similarly, you can apply any of the transform operations on your data to achieve data transformation.