Skip to content

Commit f220226

Browse files
Live publish for 12 July 2024.
2 parents bd8a8a3 + f162e71 commit f220226

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

powerapps-docs/developer/data-platform/fetchxml/reference/attribute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Use this element to specify which columns in the containing entity
44
author: pnghub
55
ms.author: gned
66
ms.reviewer: jdaly
7-
ms.date: 02/29/2024
7+
ms.date: 07/12/2024
88
ms.topic: reference
99
ms.subservice: dataverse-developer
1010
search.audienceType:
@@ -50,7 +50,7 @@ contributors:
5050
|`groupby`|No|When you aggregate data, this attribute specifies the column to use to group the data. [Learn more about grouping](../aggregate-data.md#grouping).|
5151
|`name`|Yes|The logical name of the column.|
5252
|`rowaggregate`|No|When this value is set to `CountChildren` a value that includes the total number of child records for the record is included in the results. [Learn how to use this attribute](../../query-hierarchical-data.md#retrieve-the-number-of-hierarchically-related-child-records).|
53-
|`usertimezone`|No|Used by aggregate queries that group by datetime columns. Specifies that the grouping use the user's time zone, otherwise UTC is used. Depending on the time zone, the same datetime value can fall in different days. [Learn about grouping by parts of a date](../aggregate-data.md#grouping-by-parts-of-a-date)|
53+
|`usertimezone`|No|Used by aggregate queries that group by datetime columns. Depending on the time zone, the same datetime value can fall in different days. [Learn about grouping by parts of a date](../aggregate-data.md#grouping-by-parts-of-a-date)<br /><br />Use this attribute with a `false` value to force the grouping to use UTC value. When you don't set this attribute, the default value is `true`, and the user's time zone is used.<br /><br />**Note**: With QueryExpression, the grouping always uses UTC. When using the SDK [FetchXmlToQueryExpressionRequest class](/dotnet/api/microsoft.crm.sdk.messages.fetchxmltoqueryexpressionrequest), this setting is lost. There's [no way to set this using QueryExpression](../../org-service/queryexpression/aggregate-data.md#time-zone-when-grouping-by-date).|
5454

5555
## Parent elements
5656

powerapps-docs/guidance/coding-guidelines/code-optimization.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
---
22
title: Power Apps code optimization
33
description: Learn about how to optimize code in Power Apps.
4-
ms.date: 06/12/2024
4+
ms.date: 06/25/2024
55
ms.topic: conceptual
66
ms.subservice: guidance
77
ms.service: powerapps
88
author: robstand
99
ms.author: rachaudh
10-
1110
---
1211

13-
# Code Optimization
12+
# Code optimization
1413

1514
As canvas apps evolve to meet diverse business requirements, the challenge of maintaining optimal performance becomes a critical consideration. The intricacies of data handling, user interface design, and functionality within canvas apps necessitate a nuanced approach to code optimization.
1615

@@ -26,9 +25,16 @@ The `With` function evaluates a formula for a single record. The formula can cal
2625

2726
### Concurrent function
2827

29-
The `Concurrent` function allows multiple formulas specified within the same property to be evaluated at the same time if they have connector or Dataverse calls. Normally, multiple formulas are evaluated by chaining them together with the `;` (semi-colon) operator, which evaluates each formula sequentially. With the `Concurrent` function, the app will evaluate all formulas within a property concurrently even after using the `;` operator. This concurrency helps users wait less for the same result. When data calls don't start until the previous calls finish, the app must wait for the sum of all request times. If data calls start at the same time, the app needs to wait only for the longest request time. [Learn more](/power-platform/power-fx/reference/function-concurrent) about the `Concurrent` function
28+
The `Concurrent` function allows multiple formulas specified within the same property to be evaluated at the same time if they have connector or Dataverse calls. Normally, multiple formulas are evaluated by chaining them together with the `;` (semi-colon) operator, which evaluates each formula sequentially. With the `Concurrent` function, the app will evaluate all formulas within a property concurrently even after using the `;` operator. This concurrency helps users wait less for the same result. When data calls don't start until the previous calls finish, the app must wait for the sum of all request times. If data calls start at the same time, the app needs to wait only for the longest request time. [Learn more](/power-platform/power-fx/reference/function-concurrent) about the `Concurrent` function.
3029

31-
![A screenshot of a Power Fx formula that uses the Concurrent function](media/image14.png)
30+
```powerappsfl
31+
Concurrent(
32+
ClearCollect(colAccounts1, Accounts),
33+
ClearCollect(colUsers1, Users),
34+
ClearCollect(colEnvDef1, 'Environment Variable Definitions'),
35+
ClearCollect(colEnvVal1, 'Environment Variable Values')
36+
);
37+
```
3238

3339
### Coalesce Function
3440

@@ -193,7 +199,11 @@ The code works as so:
193199

194200
- `Formula` is the output of the function
195201

196-
![A screenshot of the Power Fx window with a user-defined function in the fx box](media/image17.png)
202+
```powerappsfl
203+
// Function to calculate the area of a circle based on the radius
204+
calcAreaOfCircle(radius: Number): Number =
205+
IfError(Pi() * radius * radius, 0);
206+
```
197207

198208
Use `IfError` to implement error handling within the defined function.
199209

powerapps-docs/maker/canvas-apps/controls/control-gallery.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ The gallery control has these limitations:
4747
1. You can only add one gallery inside another gallery.
4848
1. The minimum **TemplateSize** is one. This can cause controls in the **Gallery** to drift from their expected **X** or **Y** values, when you don't account for the template size.
4949
1. If you generate an app automatically from data, save the app, and then reopen it, the browse gallery might not immediately show any data. To resolve this issue, type at least one character in the search box, and then delete the text that you typed. The gallery will then show the data as expected.
50+
1. If a gallery includes a ComboBox, DatePicker, Slider, or Toggle control with an `OnChange` rule that patches the same data source or collection as the gallery, it may lead to unexpected or reduced performance. This is because an `OnChange` rule that patches the data source of the gallery can create a never-ending cycle of patching and reloading. To avoid this issue, it is advisable not to use `OnChange` rules when these controls are placed within a gallery.
51+
52+
5053

5154

5255
## Key properties

0 commit comments

Comments
 (0)