Skip to content

Commit e5c3b86

Browse files
committed
Merge branch 'main' into pages-PR-260-related
2 parents 2b8179b + 7dac540 commit e5c3b86

File tree

11 files changed

+79
-4
lines changed

11 files changed

+79
-4
lines changed

powerapps-docs/maker/TOC.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,8 @@
622622
href: ./canvas-apps/show-current-user.md
623623
- name: Connect lists using lookups
624624
href: ./canvas-apps/sharepoint-lookup-fields.md
625+
- name: Formula repair in canvas apps (preview)
626+
href: common/formula-repair.md
625627
- name: Working with flows
626628
items:
627629
- name: Use Power Automate pane
@@ -1312,6 +1314,8 @@
13121314
href: ./model-driven-apps/model-app-page-issues.md
13131315
- name: Use monitor to troubleshoot custom pages
13141316
href: ./model-driven-apps/monitor-page-checker.md
1317+
- name: Formula repair in custom pages (preview)
1318+
href: common/formula-repair.md
13151319
- name: Create, add, or remove forms and views
13161320
href: ./model-driven-apps/create-add-remove-forms-views-dashboards.md
13171321
- name: Work with views

powerapps-docs/maker/canvas-apps/git-version-control.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: gregli-msft
55
ms.topic: conceptual
66
ms.custom: canvas
77
ms.reviewer: tapanm
8-
ms.date: 08/30/2022
8+
ms.date: 09/30/2022
99
ms.subservice: canvas-maker
1010
ms.author: gregli
1111
search.audienceType:
@@ -144,7 +144,7 @@ Since this feature is experimental, we welcome your feedback. The following list
144144
- If you open a non git connected app (for example, **App A**) from within a git connected app (for example, **App B**) (File > Open) and try to connect **App A** to a repository, **App A**'s git version control parameters will be the same as **App B**. When this happens, refresh your page and then try connecting **App A** to the repository again.
145145
- This feature does not support renaming of custom components.
146146
- If you see a message about the app being open for editing by another user, ask the referenced user to refresh the app. Afterwards, refresh your app to remove the lock.
147-
- This feature isn't compatible with [Test Studio tests](test-studio.md).
147+
- This feature is not compatible with [Test Studio tests](test-studio.md) and [custom pages for model-driven apps](../model-driven-apps/model-app-page-overview.md)
148148

149149
## Feedback to the community forum
150150

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
title: "Formula repair in Power Apps (preview) | MicrosoftDocs"
3+
description: Understand how to enable and use formula repair in Power Apps
4+
ms.custom: ""
5+
ms.date: 09/30/2022
6+
ms.reviewer: tapanm-msft
7+
ms.topic: overview
8+
author: norliu
9+
ms.subservice: common
10+
ms.author: norliu
11+
search.audienceType:
12+
- maker
13+
search.app:
14+
- PowerApps
15+
contributors:
16+
- tapanm-msft
17+
- norliu
18+
---
19+
20+
# Formula repair in Power Apps (preview)
21+
22+
[This article is pre-release documentation and is subject to change.]
23+
24+
When writing [Power Fx](/power-platform/power-fx/overview) formulas, errors are often unavoidable. And it's time-consuming to troubleshoot and fix. Power Apps Formula repair will automatically generate and fix suggestions for you when there's a formula error.
25+
26+
## Enable formula repair
27+
28+
Formula repair feature is available for [canvas apps](/power-apps/maker/canvas-apps/getting-started) and [custom pages](/power-apps/maker/model-driven-apps/model-app-page-overview).
29+
30+
Once you have Power Apps Studio open, go to the top menu bar, and select **Settings** > **Upcoming features** > **Experimental**. You'll see the toggle for **Formula repair** feature. Select the toggle to turn the feature on to experience the advantage of automatic formula checks, and suggestions.
31+
32+
:::image type="content" source="media/formula-repair/setting.png" alt-text="Formula repair - feature.":::
33+
34+
> [!IMPORTANT]
35+
> - This is an experimental feature.
36+
> - [!INCLUDE[cc_preview_features_definition](../../includes/cc-preview-features-definition.md)]
37+
38+
## Use formula repair
39+
40+
Once you have the focus inside the formula bar, if the formula has any errors that the formula repair feature finds suggestions for, you'll see a red dot next to the **fx** icon.
41+
42+
When you select this red dot, you'll be able to see suggested fix for your formula. After confirming the suggested change, select **Apply** to apply the change to your formula and fix the formula error.
43+
44+
For example, the following usage shows a typo when entering the name of the label from `Label1` to `Lable1`. The formula repair feature recognizes this mistake, and suggests the change. Upon confirming and applying the change, the error is fixed.
45+
46+
:::image type="content" source="media/formula-repair/example-repair-process.png" alt-text="Example of Label.Text.":::
47+
48+
## Scope of error discovery and suggestions
49+
50+
Several types of errors are discovered and suggested as a fix.
51+
52+
1. Missing parenthesis and missing quotes.
53+
54+
1. Typos, similar to the example for the label control shown earlier in this article.
55+
56+
1. Misuse of delimiters and missing operators.
57+
58+
Example of a formula using a comma (",") instead of a semicolon (";"):
59+
60+
:::image type="content" source="media/formula-repair/submitform.png" alt-text="Example of SubmitForm.":::
61+
62+
Example of a formula with a missed reference to a comma (","):
63+
64+
:::image type="content" source="media/formula-repair/complex-formula.png" alt-text="Example of complex formula.":::
65+
66+
## Limitations
67+
68+
- Formula repair won't be able to determine the expected values when you enter a complete incorrect control name. For example, if your control name is `MyLabel` and you try to enter `WrongLabel`. In this situation, formula repair feature won't be able to determine and suggest you to use the formula to reference `MyLabel` instead of `WrongLabel`.
69+
70+
- Formula repair won't trigger if your formula has only warnings, or isn't showing any errors (even when the formula is incorrect).
Loading
Loading
Loading
Loading
Loading

powerapps-docs/maker/model-driven-apps/build-app-three-steps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "This first run tutorial shows you how to build a model-driven app
44
keywords: ""
55
ms.date: 04/07/2022
66
ms.custom:
7-
ms.topic: getting-started
7+
ms.topic: conceptual
88
applies_to:
99
- "Dynamics 365 (online)"
1010
- "Dynamics 365 Version 9.x"

powerapps-docs/maker/signup-for-powerapps.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,4 @@ Try the Power Apps [community](https://community.powerapps.com).
104104

105105

106106
[!INCLUDE[footer-include](../includes/footer-banner.md)]
107+

0 commit comments

Comments
 (0)