Relationship within an object to table
I am pulling data from an external API into a table. Within that table I have an object called bookmakers with a key for each bookmaker. Because the API doesn't provide a photo, ive created a second table with the photos. I am trying to join the two based on the name of the bookmaker but cannot figure out how
Comments
-
Ok got this far but now i'm stuck again. I assume bookm is limited in scope to the loop but i'm at a loss for how I can update the actual entry.
-
Hi @EvanLeSage this actually sounds like the perfect use-case for an Addon! Addons allow you to decorate your response with related data and are designed for these kind of use-cases.
Take a look at the documentation. And also the intro tutorial below:
-
@Michael Udinski Hi, the only thing I can reference by from addons is id, but I don't want to manually line these up since theyre being updated from the api. So I'm still lost as to how I can create the table references based on the matching text "key".
-
Hi @EvanLeSage actually create Addons based on any field. It doesn't have to be the ID. Check out the Addons page in the Library where you have control over the query and inputs. If you are trying to create Xano table references based on a matching field then you can follow this tutorial as an example -
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