array.object not passed into for each loop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2022 07:05 AM
Hello All,
With Flow Designer, I am trying to pull devices from a FortiManager and got a payload back and converted into an array.object. I tried loop through the objects in this array with a For Each loop but when I run the flow, test run output shows that nothing is passed into the For Each loop.
Please see attached screenshot for more info. I did notice a weird thing, the For Each Item action references variable from action #3 (3 > variable > result_object...), shouldn't it reference #2 instead? thats where it get the array.object from.
I tried deleting the action, deleting the whole flow and create a new one. Everytime I select the array.object from action #2, it shows 3 > variable... afterward.
Is this a bug?
Thank you!
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2022 07:55 PM
Hi Minh,
It's probably not a bug but rather a limitation. I'm able to process 1 dimensional String array but fail to process object array with "For Each Item in" step.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2022 06:50 AM
Totally agree Hitoshi. So what happened was I had a nested array and I tried to loop through a child array first. I was able to get it to work by loop through the root array first, then the children, then grand-children, etc...
Thanks for your reply
Minh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2022 02:44 PM
Hello, Can you please share a screenshot of how looped through "root array first, then the children, then grand-children". Thanks.
When I tried For each (child array) within a for each (root array), Flow is not displaying the objects from the child array.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 07:38 AM
Please see below Akshar, hope this helps
Minh