Notifications
Announcements
Search('Table', TextSearchBox1.Text, "IDNumber")
Is there a way to Search for a number in a Gallery? Attempting to use a field in my Search that is a Number format just seems to lead to a error.
You can search only for text. you can either format the number to text
Search('Table', Text(TextSearchBox1.Text), Text(IDNumber))
Or use filter instead
Issue is Text(IDNumber) doesn't work. It says Text has a invalid value.
Can you try Text(TableName.IDNumber)
What datasource are you using? Sharepoint?
No luck. Invalid argument again. I am using CDS (Common Data Service).
Never tried that. Any chance to use Filter instead?
Filter('Table', Value(TextSearchBox1.Text) = IDNumber)
Was hoping to use Search for this specific part... but if it isn't possible not a lot can be done. I'll slot this into my existing Filter
Hi @Sienna
I have made a collection and am now trying to search in that collection. Can you help me? 🙂
Best regards
Eva
Another solution is to first create a custom column in your dataset using the AddColumns function, that converts that number field to text, then you can search on it.
Search( AddColumns('Table', "MyTextCol", Text(IDNumber)), TextSearchBox1.Text, "MyTextCol")
Hi, try this:
Property Items in your gallery component:
Search(AddColumns(colYourTable, "IDSearch", Text(IDNumber)),TextSearchBox1.Text,"IDSearch");
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268