Lance Delano, Author at Microsoft Power Platform Blog http://approjects.co.za/?big=en-us/power-platform/blog Innovate with Business Apps Wed, 22 Jan 2025 00:09:41 +0000 en-US hourly 1 SQL Server environment variables available for Power Apps http://approjects.co.za/?big=en-us/power-platform/blog/power-apps/sql-server-environment-variables-available-for-power-apps/ Wed, 22 Jan 2025 00:09:39 +0000 We are excited to announce that SQL Server environment variables (Entra) for Power Apps support is currently rolling out and will be in Preview regions by Jan 22 and in all regions – including sovereign – by Feb 3. SQL Server environment variables (Entra) for Power Apps will save you time moving your solutions from

The post SQL Server environment variables available for Power Apps appeared first on Microsoft Power Platform Blog.

]]>
We are excited to announce that SQL Server environment variables (Entra) for Power Apps support is currently rolling out and will be in Preview regions by Jan 22 and in all regions – including sovereign – by Feb 3.

SQL Server environment variables (Entra) for Power Apps will save you time moving your solutions from one environment to another. For example, from an environment used for dev or test to a different environment used for test or production. Manually create environment variables in your solution or set a switch in your app to auto-create them for you when you add a data source to your app while in your solution. Note that this feature is specifically for Entra. Power Apps with shared connections (e.g., SQL Auth) continue with connection references.

There are two environment variables to set for SQL connections: server and database. The database environment variable depends on the server environment variable. First you create an environment variable for your server. Once that is created you can create an environment variable for the database that attaches to the server environment variable.

A screenshot of a computer
A screenshot of a computer

Use an environment variable by selecting to create data source and instead of creating a new server database combo, use the ‘Advanced’ tab to select the environment variable to bind to the controls in your app.

A screenshot of a computer

Use SQL Server environment variables (Entra) to easily enable professional deployment patterns. See the documentation for this feature for an in-depth discussion: Use environment variables in Power Platform solutions – Power Apps | Microsoft Learn

The post SQL Server environment variables available for Power Apps appeared first on Microsoft Power Platform Blog.

]]>
Use Copilot to quickly filter, sort, and search canvas app galleries with SQL Server http://approjects.co.za/?big=en-us/power-platform/blog/power-apps/use-copilot-to-quickly-filter-sort-and-search-canvas-app-galleries-with-sql-server/ Wed, 02 Oct 2024 13:29:48 +0000 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 post Use Copilot to quickly filter, sort, and search canvas app galleries with SQL Server appeared first on Microsoft Power Platform Blog.

]]>
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

The post Use Copilot to quickly filter, sort, and search canvas app galleries with SQL Server appeared first on Microsoft Power Platform Blog.

]]>
Use Copilot to quickly filter, sort, and search canvas app galleries with SharePoint lists http://approjects.co.za/?big=en-us/power-platform/blog/power-apps/use-copilot-to-quickly-filter-sort-and-search-canvas-app-galleries-with-sharepoint-lists/ Fri, 23 Aug 2024 23:19:25 +0000 Use natural language queries with Copilot for filter to fine tune the records you see in your canvas galleries at runtime.

The post Use Copilot to quickly filter, sort, and search canvas app galleries with SharePoint lists appeared first on Microsoft Power Platform Blog.

]]>
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 SharePoint. 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 7.4 which is expected to be available starting on July 29. It will be fully rolled out to all regions several weeks later. This premium feature is on by default and authors may disable if required.

Using Copilot with filter

Open a running app that uses a gallery against SharePoint.  If you have a premium license, then you will see an adorner on your 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.

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.

Getting started

Choose a build after 7.4 (expected on 7/29) and make sure you’ve also re-published your app on 7.4 or later. 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

The post Use Copilot to quickly filter, sort, and search canvas app galleries with SharePoint lists appeared first on Microsoft Power Platform Blog.

]]>
Call SQL Server procedures directly in Power Fx (GA) http://approjects.co.za/?big=en-us/power-platform/blog/power-apps/call-sql-server-procedures-directly-in-power-fx-ga/ Wed, 31 Jul 2024 14:00:00 +0000 GA of calling stored procedures directly in Power Fx. Speed up app development. Speeds up Power App performance.

The post Call SQL Server procedures directly in Power Fx (GA) appeared first on Microsoft Power Platform Blog.

]]>
We are excited to announce that calling SQL Server stored procedures in Power Fx is now generally available in all regions. You do not need to call a Power Automate Flow to use a stored procedure making development of Power Apps for SQL easier for authors and faster overall performance for both authors and end users. The ability to call stored procedures for the SQL connector directly is an extension to the existing tabular model and gives users access to tables, views, and stored procedures. This feature extends our ongoing support of SQL Server as a primary development target for Power Apps.

Getting started

To use this feature, you need to either create a new SQL connection to your app or already have one in your app. In the table selector, choose the ‘Stored Procedure’ tab and select all of the stored procedures you want to access in your app. Then you can directly access the stored procedure in your app by referring to the data source name and then ‘dot’ into the specific stored procedure in a Power Fx formula.

This feature is an extension to the tabular model. We allow the ability to execute stored procedures, but we do not allow the ability to run arbitrary SQL. This helps provides an additional level of security. Additionally, you can bind a stored procedure directly to a gallery or table by checking the ‘Safe to use for galleries and tables’ checkbox.   

See the article Connect to SQL Server from Power Apps for a discussion of how and when to select this option and other details on how to use this feature.

The post Call SQL Server procedures directly in Power Fx (GA) appeared first on Microsoft Power Platform Blog.

]]>
Comment your PowerApps code! http://approjects.co.za/?big=en-us/power-platform/blog/power-apps/comment-your-powerapps-code/ Fri, 01 Jun 2018 10:27:04 +0000 We are happy to announce the formula commenting feature for PowerApps. Have you ever inspected a PowerApps formula and wondered just what the author was trying to accomplish? Or, maybe you’ve…

The post Comment your PowerApps code! appeared first on Microsoft Power Platform Blog.

]]>
We are happy to announce the formula commenting feature for PowerApps. Have you ever inspected a PowerApps formula and wondered just what the author was trying to accomplish? Or, maybe you’ve wondered what even you, yourself, were trying to accomplish in a formula you wrote six months ago? But, without a formula commenting feature, authors can’t leave hints, guidance, or help in the formula itself.

Now anyone can comment a formula to provide help to those who inspect it later.

Commenting Styles

We make two commenting styles possible: line and block.

Line Comments

A line comment is one that comes at the end of a formula and takes up the rest of the line. For instance, if your formula looks like the following:

clip image 02

You can add line comments by adding a “// <your comment here>” at the end of the line like so:

clip image 004

You can’t put any code at the end of the comment – the comment runs all the way to the end of the line. And, the formula assumes that the next line picks up where the comment on the previous line began.

Block Comments

The other style of comment is block comment. As shown below, it starts with the special key combination of forward slash and an asterisk and continues until explicitly terminated with the opposite key combination of asterisk forward slash.

clip image 004

Note that you can use the block style comment at the end of a line as well. But the line style comment is easier to use for an end of line comment.

And, sometimes people use the end of line comment in the same way the block style comments are used.

clip image 008

But, it’s up to you. Pick a style that works for your formulas in your PowerApp. We’d love to hear from you about this feature in the PowerApps Community.

Thanks,

The PowerApps team.

The post Comment your PowerApps code! appeared first on Microsoft Power Platform Blog.

]]>