Hi,
Is it possible to read a loop’s output values outside of a loop ? Or to define a variable outside the loop, modify it within the loop, and reference it outside the loop ?
Hi,
Is it possible to read a loop’s output values outside of a loop ? Or to define a variable outside the loop, modify it within the loop, and reference it outside the loop ?
let me what is the scenario?
The scenario is that I have a json input that can be
"contextMappings": [
{ "Country": ["DE", "BG"] },
{ "Store" : ["5"] }
]
or
"contextMappings": [
{ "Country": ["AT"] },
{ "AppName" : ["App1", "App2", "App3"] }
]
I want to iterate over these values and form a query like:
I have been trying several things, but am not able to construct the string. I found that a variable defined externally cannot be modified, loop values cannot be referred outside a loop, I am running out of ideas how to handle this scenario.
Any pointers/ideas are welcome.
Thank you !
Hi @sanasalim
Simple answer is no, You cannot get the data outside loop. At-least with the available out of the box options that are there…
Coming to the next query of crafting some query.
The idea that comes top of my head is
Is this the best solution? No, just a solution that comes to top of my head as i am not aware about the requirements.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.