I currently have a json object that has an array inside of it, where each object inside of the array also contains a field that has another array. I use an apply to each loop on the json field for the containing array.
I next want to filter only the items that I want from the inner arrays. However, when I refer to "item()" within the filter action, the item() is instead referencing the current Apply_to_each context, rather than the current filter action.
Is it possible to have a filter inside of a loop and still be able to refer to the current filter action iteration?
Could you please post a sample JSON file?
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogJust a simple nested array:
[
{
"field1": false,
"field2": [
{ "inner": 1 },
{ "inner": 2 }
]
},
{
"field1": false,
"field2": [
{ "inner": 1 },
{ "inner": 2 }
]
}
]
Thanks for the JSON example. What you trying to filter here from field2? What data you expect after the filter?
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogLearn to digitize and optimize business processes and connect all your applications to share data in real time.
Learn from the top Power BI, Power Apps, Power Automate & Power Virtual Agents experts!
User | Count |
---|---|
33 | |
32 | |
23 | |
22 | |
19 |
User | Count |
---|---|
58 | |
55 | |
41 | |
37 | |
28 |