How to use the queried record's key as param for addon?
I am using the addon and want to use the value as param in the addon for where condition. Suppose I want to fetch the posts of users where post_type = unseen. The post type variable will be in user object. But I am not able to use the value from User object in addon. How can I acheive this?
Answers
-
Hi,
I'm not sure if I understand how it works, so the indicator if a particular post was seen by a user is in user table?
As a general answer I would suggest to use join via user relation. To tell more I need more details -
I tried with join. This is the current workaround
Queried all records from database. Created an addon now Addon needs 2 params. One is id which has been acheived and one is type. I want to use the type from parent object. How can I get this type variable from parent to use as param in addon? -
Ok, I think I figured that out.
So what you need to do is to go to the addon section and choose the addon you created then add manually another input "category" and include it in the custom query.
After publishing the addon, when you will add it to your output, you should have two fields as input. -
This has already done. I am asking about the value of input. How can I get the value from parent object to use it in addon.
-
Hi, Then I'm not completely sure if I understand it correctly. Can you share some screens from Xano to illustrate this?
-
You mean this ?
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