Hi everyone,
I need to read 2 infos from an API.
I build the flow with HTML - Compose - Parse JSON but the response of API is not linear.
The structure is like this:
Solved! Go to Solution.
Hey,
maybe there is an easier way but you could do it like this:
Full Flow:
***
Explanation
First, after your Parse JSON action, create two new variables (initialize variable action). Called SAPCliente and AccountManager. Both empty strings.
Then add two nested Apply to each loops and select the dynamic content responses and fields (from the Parse JSON action) as their "output".
Then, add two Condition actions.
On the left side, use the Dynamic content name, as operator set it to is equal to and on the right side enter the text SAPCliente for the first Condition and AccountManager for the second Condition.
Then inside the If yes sections, add the Set variable actions. Select SAPCliente inside the first If yes section and Account Manager in the second If yes section.
As Value, put the Dynamic content value.
***
Test / Check
Result Compose action at the very end of the flow to check if it works:
When the flow ran:
hope this helps...
cheers
Hey,
maybe there is an easier way but you could do it like this:
Full Flow:
***
Explanation
First, after your Parse JSON action, create two new variables (initialize variable action). Called SAPCliente and AccountManager. Both empty strings.
Then add two nested Apply to each loops and select the dynamic content responses and fields (from the Parse JSON action) as their "output".
Then, add two Condition actions.
On the left side, use the Dynamic content name, as operator set it to is equal to and on the right side enter the text SAPCliente for the first Condition and AccountManager for the second Condition.
Then inside the If yes sections, add the Set variable actions. Select SAPCliente inside the first If yes section and Account Manager in the second If yes section.
As Value, put the Dynamic content value.
***
Test / Check
Result Compose action at the very end of the flow to check if it works:
When the flow ran:
hope this helps...
cheers
It works!
Thank you so much 😁
User | Count |
---|---|
94 | |
47 | |
21 | |
19 | |
17 |
User | Count |
---|---|
143 | |
53 | |
42 | |
40 | |
31 |