How to map addon to value of array?
![Anna Sho](https://us.v-cdn.net/6037124/uploads/userpics/9J2BDR93V3FA/nAMOURF2V6E1B.jpeg)
I Need to map addon to participant ID
My addon works for single item mapping. For array I try this:
But as a result, I don't have either an addon nor an ID in the array.
What is the correct way to map addon in this case?
Best Answer
-
Thank you for the answer. Issue resolved.
It happens that when creating new addon and selecting "query all records where userId = id" and then response should be "single item" from that query, it doesnt work.
For addon you should do "Get single record" not the Query .
With GET single item it works and maps to array.
Answers
-
@Anna Sho can you show me how your Addon is filtered? (Go to Library > Addons > Click on the addon> Query all records > by custom query)
And also what the return type of the Addon is?
-
great!! thanks for sharing your solution
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