Home Use Copilot to quickly filter, sort, and search canvas app galleries with SQL Server

We are excited to announce that Power Apps application runtime users can now use Copilot to quickly filter, sort, and search the items in canvas app galleries with SQL Server. This feature is in addition to the previously released capability to filter SharePoint canvas galleries. Copilot uses your natural language to generate a query to the database that scopes the current view of records in a gallery so you can quickly find the records you need. This feature is available only for Power Apps canvas web apps and only at runtime for all applications that have been republished after version 3.24092.17. This premium feature is on by default and authors may disable if required. It is currently rolling out and is expected in all regions by October 14th.

Like with SharePoint, this feature operates with any natively bound gallery where the gallery is directly populated by SharePoint and not by a collection or variable.

Using Copilot with filter

Open a running app that uses a gallery against SQL Server.  If you have a premium license (which is required for the SQL Server connector), then you will see an adorner on your gallery.

Image of adorner on gallery

Copilot supports three kinds of queries – filter, sort, and search.  While you can type any query you might like, it suggests possible questions based on your data in your app at the time. Note that Copilot over SQL supports an additional verb “in” that SharePoint does not support. It will search for an occurrence of your search text inside of a record value.

Copilot then scopes the records to satisfy the query. It displays a “Filtered” badge in the upper right corner of the gallery.  The exact query that was executed is displayed as a tag. And you can continue to refine your query with additional details by adding more query commands.

Filter, sort, and search galleries with Copilot to filter provides five key benefits:

  • Copilot makes end users more productive and saves time. If an author has not built in search and sort capabilities, Copilot enables this scenario and makes them more productive. End users save time with the ability to directly express their query in natural language.
  • Copilot saves author’s development time. Authors save time developing apps because they don’t need to develop all the UI controls necessary for the app. Instead, they can rely on Copilot for this functionality.
  • Copilot enables queries over the full query result – not just what you can see in the gallery. Users can filter, sort, and search on fields even if the application doesn’t provide UI controls for these tasks. For example, you can search for records even if the application doesn’t have a search bar.
  • Copilot is query safe. It only generates queries that can be run on the server. Authors don’t need to worry about whether or not their queries can be delegated.
  • Copilot keeps private data private. It only works with the data that is normally returned to the application. It doesn’t access fields that aren’t returned to the app in a gallery/grid or form.

Create a new app with Studio version on or after 3.24092.17 or re-publish an existing app with this version. Then access your app while it is running. (Copilot with filter only appears at runtime, it does not appear inside of Studio.) Select an item in the gallery to start using Copilot with filter.

See the documentation for this feature for more details. https://learn.microsoft.com/en-us/power-apps/user/smartgrid

Related Content