ForEach@1
Node ForEach@1
allows to iterate over an array and execute a sub transformation pipeline for each element.
The node produces an array of outputs, one for each iteration.
Adapter Prerequisites
- General availability: All adapters support this node type.
Node Configuration
For fields path
, targetPath
, targetValueWriteMode
, and targetValueKind
, see Overview.
transformations:
- type: ForEach@1
path: $.customers # Path to the array to iterate over
targetPath: $.items # Path where the data should be stored in the payload (will be an array)
transformations: # Sub pipeline that will be executed for each iteration
- type: CreateUpdateInfo@1
targetPath: $._updateItem
updateKind: INSERT
ckTypeId: OctoSdkDemo/Customer
attributeUpdates:
- attributeName: Name
attributeValueType: String
valuePath: $.customer.lastName