Orchestration
...
Native Actions
Loops
3 min
as orchestrators, sometimes you need to apply one or more actions to each item in an array foreach loops allow you to have access to the iterative item in the array for easy configuration and action building use the loop native action to receive an array of items and iterate through that array performing action(s) on each item reduce the need for configuring a repeated nested playbook action to apply more than one action to each item in an array loop native action set up time to start basic set up for the loop native action you have already created a playbook, and you want to iterate over an array applying action(s) to each item individually select loop and the loop configuration window displays in the right hand pane click the contains sensitive data checkbox if you have any sensitive data the window mirrors other actions but with additional configuration options turbine only uses foreach loops however, you can make additional configurations first, select your process by choosing between parallel and sequential next, you can configure the foreach loop by applying an array input with the playbook property selection or expression syntax lastly, you can click outputs and promote outputs to use outside of the playbook in the playbook, you can see the loop native action is first, followed by the option to add an action, and a plus icon that allows you to add more actions the blue border indicates the action or set of actions that the foreach loop iterates you have successfully created a foreach loop in your playbook to see the results of a loop, you must run a playbook in its entirety the aggregated foreach loop results only come from the last action in loop there are no branching or nesting capabilities in foreach loops use case see loops use case for examples