Using Apply to Each Logic for Integration Workflows

You can use Apply to Each logic to contain actions within a single step and continue configuring additional common actions in the main integration workflow.

Important:

Integration workflows can only have one Apply to Each logic action per workflow. This is designed to avoid excessive processing time, as workflows processing for more than 25 minutes will fail. There is no limit to the number of executions for Apply to Each. However, if paired with Do While Loop logic and using multiple arrays that exceed the Do While Loop's iteration limit of a 1000, the execution will fail and cite an exceeded max count.

OneTrust recommends to send a second Apply To Each loop to process in a subflow workflow. Although only one subflow action is permitted per workflow, this can be bypassed by using POST request actions instead.

For example, you can leverage the subflow action or a generic POST request to effectively chain multiple integration workflows, known as the “workflow chaining” approach. This approach involves triggering another workflow’s webhook trigger and passing the necessary data in the API call’s body.

To create Apply to Each logic

  1. On the Integrations menu, select Integrations.

    The Integrations screen appears.

  2. Click on the name of an integration.

    The Integration Builder screen appears.

  3. Configure the workflow with a trigger and an initial system or OneTrust action.
  4. Click the Add Action button after the initial action.


  5. Click the Logic tab, then click Apply to each.


  6. In the JSONPath to output from previous steps field, select which parameter the Apply to Each logic should collect from.


  7. Click the Finish button. A new Add Action block will appear under the Apply to Each logic step.
  8. Configure the actions that should be taken that will be applied to each.
  9. Click the Add Action button within the Apply to Each step to continue adding and stacking actions.
  10. To continue with the workflow configuration, click the Add Action button outside the Apply to Each step in the main execution workflow.