Using Variables in the find card (Not Working)
# 🤝help
n
Hello All! Any help with this is appreciated. I really love Botpress and was trying to leverage the tables feature to create a process whereas the bot will perform a lookup once the user enters their email address and uses it to checks to see if there's a record already with that email and repsonds accordingly. So far I havent been able to get this to work. Its seems query selectors do not allow you to use a variable in them (I've added a screenshot). If there's a better way to do this please let me know.

https://cdn.discordapp.com/attachments/1141082067891916800/1141082068076478624/Screenshot_2023-08-15_at_1.50.38_PM.png

f
Hi, variables are not supported in the selectors for now. Can you share more about what you're trying to do, maybe there's another way of doing it
t
It looks like I'm running into the same issue. I am trying to check if the email a user entered matches an email in the table. I attempted to use a variable to check the database but as you established it's not supported by selectors. How would we search the database for a previously entered email and return the table id so we can pull the information into our bot?
n
I'm trying to allow user to enter their email and then have the chatbot check a table and return all records that contain that email address.
f
Hey, while that's a very good use case unfortunately that's not possible right now with table queries
Would you be so generous as to create a feature request for this?👍
15 Views