Filter Addon / Conditional Addon
Hi there
How do I filter which records are added-on in an addon? Details in somewhat wordy Loom, hope it makes sense.
Thanks.
Best Answer
-
Hi @dorian
I had a quick look at your video. My recommendation would be to use an INNER JOIN on one of your queries within the functional stack.
You would be joining on subsidy.business_id = workers.business_id. If you need to show addon data against your main API call. Make sure you have the business_id from your input in your addon and you can send your business_id from your main API call to your addon.
Hope this helps.
Answers
-
Thanks @Tim McIntosh I actually just figured out that I should add that business_id as an input to the addon. That solved the problem. I didn't need to add any joins just by nature of me first calling the subsidies table, then the user table. Thanks for the reply!
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