I am experiencing difficulties with Microsoft Power Pages platform Search Button in Power Platform Only Returns Results with First Part of Username When using the search functionality for usernames, the search only returns results if the first part of the username is entered. Ideally, I would like the search to work as a "like" search so that any part of the username can be typed in, and the corresponding user will appear in the results.
For instance, if the product name is "Big Chicken" and we type "Chicken" in the search, no results will be shown. The search only returns results when the first part of the name, "Big," is entered.
I would greatly appreciate it if anyone could guide me on how to update the search behavior to work as a "like" search, where any part of the username can be entered to return matching results.
You're experiencing an issue in Power Pages where the search functionality only returns results when the first part of the username or product name is entered. For example, searching for "Chicken" won’t return "Big Chicken", but searching for "Big" will. You’d like to implement a “like” search that matches any part of the string.
This is a known limitation of the default search behavior in Power Pages, which typically uses starts-with logic rather than contains logic. Here's how you can address and improve this behavior.
You can override the default search behavior by implementing a custom filter using Liquid and FetchXML or JavaScript. This allows you to use contains
or like
operators instead of startswith
.
A helpful guide from PascalCase explains how to build custom filters that support partial string matching. You can:
condition attribute="name" operator="like" value="%Chicken%"
to query DataverseIf you're using the new Search Component in Power Pages (currently in preview), you can configure it to support more flexible search behavior:
Documentation: Add a Search Component – Microsoft Learn
If your data source is SharePoint or Dataverse and you're using a gallery or list component, you can modify the Items
property to use Search()
or Filter()
with in
or Contains()
logic. For example:
Filter(Users, TextInput.Text in DisplayName)
Fubar
62
Super User 2025 Season 2
Lucas001
48
Super User 2025 Season 2
KevinGador
44
Super User 2025 Season 2