BuildShipBBuildShip
Powered by
Angel MayrA
BuildShip•2y ago
Angel Mayr

Issues with Loop node :c

I am having this error with my flow. I want to get the comments from my posts on my Facebook page, but since it's not possible to get them directly, what I am trying to do first is make an HTTP request to the Meta API to get all the post IDs (in an array) from my Facebook page. Then, I use those IDs to get the comments from each post. Up to this point, it works correctly.

Then, I also have a JSON of several objects:

{
"103302978848090_490151180": {
"data": []
},
"103302978848090_489148631": {
"data": []
}, etc...

I created a node that, when "data" contains something, returns "true". This means that the ID of that specific post has comments, but when there are no comments, i.e., "data" is empty, it returns "false":

[
{
"key": "103302978848090_49258303",
"hasData": false -> this one doesn't contain comments
},
{
"key": "103302978848090_49258303",
"hasData": true -> this one does contain comments
}...etc
]

Then I add a Loop node to iterate over that array of objects, and I execute another conditional to determine if "hasData" is true or false. If it is "true," I proceed to execute my flow; if it is "false," it does nothing.

My problem lies in the Loop Node because it only iterates over the first element of the array, and therefore, it only returns one response.

I hope you can help me, thank you very much
Captura_de_pantalla_2024-06-07_141827.png
Captura_de_pantalla_2024-06-07_141638.png
Captura_de_pantalla_2024-06-07_141347.png
BuildShip banner
BuildShipJoin
Join founders, builders, devs using Low-code / No-code to create backend, APIs, scheduled Jobs, automation, AI workflows
7,971Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Loop: Is there an "continue" node?
solSsol / ❓・buildship-help
13mo ago
Loop problem with supabase
Burak DönertaşBBurak Dönertaş / ❓・buildship-help
17mo ago
loop
Zach_PlatZZach_Plat / ❓・buildship-help
7mo ago
Issue with ElevenLabs node
vik01010Vvik01010 / ❓・buildship-help
2y ago