https://discord.gg/botpress logo
Make a query with Botpress Studio
# 🤝help
b
How can I get the fullAddress field of my UserRegistrationTable table knowing the user's phoneNumber, using the Botpress visual interface? I tried to use the Find Records card, however it returns all the columns of the selected user. That's the record filter: The value phoneNumber is equal to @user.phoneNumber
p
You can use the query knowledge base card if your table is apart of any of your knowledge base. Otherwise if you're storing the output of your find records card in an array, you should be able to access the appropriate cell to get the fullAddress out of it. Hope this helps!
b
I understand, but what I want to do is to get a specific field from the user, not get the array and then filter it. Something similar to what is done in sql type databases: SELECT fullAddress FROM UserRegistrationTable WHERE phoneNumber = phoneNumber
p
The information you need is stored in the find record answer. For example, the text card after it could return {{workflow.'yourArrayName'[0].fullAddress}}