Add elements to an array in a workflow.
Use pushToArray to collect results during iterations, track errors or failures, and build lists dynamically.
Platform 6 requirement: Arrays must be created before using pushToArray. See Platform 6 changes below.
Collect devices that fail VLAN configuration:
The result is that failedDevices contains all devices where configuration failed.
Platform 6 requires arrays to exist before use.
Add a newVariable task before pushToArray:
As a best practice, create all variables at the start of the workflow. See Workflow Best Practices.
failedDevices rather than array1.pushToArray.