itsmanumr
Member
Hello,
I have a Workflow initiated by a webhook. This webhook receives a JSON every time a third-party application requires it to start.
The received raw message has the following format:
[
{
"key": "value",
"key": "value",
"key": "value",
"array": [
"valueX",
[
"Test 1",
"Test 2",
"Test n"
]
],
"key": "value",
}
]
From this JSON, I need to add an iterator that only iterates over the values inside the second array (in this example: Test 1, Test 2, Test n). For each iteration, it should send valueX and the corresponding value from the array to another endpoint. In this example, each iteration should send:
Iteration 1: valueX+Test1
Iteration 2: valueX+Test2
Iteration n: valueX+Testn
The problem is that when I receive the initial message, the webhook converts the entire message into key-value pairs, putting all the array values at the same level and converting them into unique values. When trying to configure the iterator, it does not detect the presence of any array.
I have also tried disabling simple response and, through transformations, keeping only the relevant array. However, the iterator does not recognize it in this way.
How can I approach this situation?
I have a Workflow initiated by a webhook. This webhook receives a JSON every time a third-party application requires it to start.
The received raw message has the following format:
[
{
"key": "value",
"key": "value",
"key": "value",
"array": [
"valueX",
[
"Test 1",
"Test 2",
"Test n"
]
],
"key": "value",
}
]
From this JSON, I need to add an iterator that only iterates over the values inside the second array (in this example: Test 1, Test 2, Test n). For each iteration, it should send valueX and the corresponding value from the array to another endpoint. In this example, each iteration should send:
Iteration 1: valueX+Test1
Iteration 2: valueX+Test2
Iteration n: valueX+Testn
The problem is that when I receive the initial message, the webhook converts the entire message into key-value pairs, putting all the array values at the same level and converting them into unique values. When trying to configure the iterator, it does not detect the presence of any array.
I have also tried disabling simple response and, through transformations, keeping only the relevant array. However, the iterator does not recognize it in this way.
How can I approach this situation?