webhooks.foreach
Iterates over an array of objects and processes an output based on each element in the array. Works similarly to JavaScript's forEach method.
Name | Type | Default | Description |
---|---|---|---|
foreach Optional | object | - | An object that contains the foreach properties . |
foreach Properties
Name | Type | Default | Description |
---|---|---|---|
append Required | string | - | The values to append to the output_key .Properties from the object can be referenced and added to the output_key by using the following syntax: %{this.property_name} .The this keyword is used to reference the current object in the array. |
input_key Required | string | - | The key to be used to access the current element in the array. |
max Optional | number | - | The max amount of elements that are iterated over in the array. This will start at the beginning of the array. |
output_key Required | string | - | The key that can be referenced in the output of the foreach iteration. The values that are stored from append will be stored in this key. |