Can't loop through an input array of objects
Options
![agioanni](https://us.v-cdn.net/6037124/uploads/userpics/UJC8U9H3IL9A/nQ1RTG0WF8ED2.jpg)
agioanni
Member ✭
I have an input constituentContacts, which is an array of objects
I have a foreach loop on constituentContacts as contact, but contact seems to be empty. when I try to extract a value like contact.first_name, it throws an error
what did i do wrong ?
see capture
Best Answer
-
Hi @agioanni - did you define the object schema on your input?
Objects need a defined schema, so try this then give it another run
Answers
-
Works great !! thanks
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback