vlototskyi
vlototskyi11mo ago

Loop item is always undefined

For some reason loop item is always undefined. I tried to pass array of strings or numbers instead of variable but result is always the same Error: Cannot read properties of undefined (reading 'item')
No description
5 Replies
Gaurav Chadha
Gaurav Chadha11mo ago
It is due to that the items need to be mapped from the the node below on which loop is executed, you can use variables to pass the items and loop over the email. Loop - https://docs.buildship.com/core-nodes/loop.
vlototskyi
vlototskyiOP11mo ago
I tried to pass variable from the body that I receive on API call, It doesn't work either way, same error. I've submitted support ticket with my workflow from web ui
Gaurav Chadha
Gaurav Chadha11mo ago
Thanks for sharing, received, will take a look and update you here.
vlototskyi
vlototskyiOP11mo ago
By the time, I've found a workaround. If you add an empty node before Create Firestore node that just accepts loop item as a parameter and returns it everything works. Strange 🙂
No description
Gaurav Chadha
Gaurav Chadha11mo ago
Cool.