Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

array.object not passed into for each loop

Minh2
Tera Expert

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?

find_real_file.png

Thank you!

5 REPLIES 5

Brian Kimani
Tera Contributor

Process the script separately from the flow.