You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/cards/make-a-card/power-fx/intro-to-pfx.md
+60-11Lines changed: 60 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -29,14 +29,63 @@ The [Power Fx documentation](/power-platform/power-fx/overview) is the main sour
29
29
30
30
## Known limitations of using Power Fx in cards
31
31
32
-
The following Power Fx formulas don't work in cards or work with limitations:
33
-
34
-
-[**Set**](/power-platform/power-fx/reference/function-set) and [**Collect**](/power-platform/power-fx/reference/function-clear-collect-clearcollect#collect) requires the variable to exist and the variable type to match what you're trying to set it to.
35
-
-[**Collect**](/power-platform/power-fx/reference/function-clear-collect-clearcollect#collect), [**Patch**](/power-platform/power-fx/reference/function-patch), and [**Remove**](/power-platform/power-fx/reference/function-remove-removeif#remove-function) work with variables and Dataverse tables only.
36
-
-[**Defaults**](/power-platform/power-fx/reference/function-defaults) is not supported, instead use [**Collect**](/power-platform/power-fx/reference/function-clear-collect-clearcollect#collect). For example, instead of `Patch(account, Defaults(account), {"Account Name": "Example Account"})` use `Collect(account, {"Account Name": "Example Account"})`.
37
-
-[**User()**](/power-platform/power-fx/reference/function-user) is not supported yet. Instead, use **Viewer**, which has a subset of information about the user viewing the card.
38
-
-[**Clear**](/power-platform/power-fx/reference/function-clear-collect-clearcollect#clear) and [**ClearCollect**](/power-platform/power-fx/reference/function-clear-collect-clearcollect#clearcollect) are not supported yet.
39
-
-[**Update**](/power-platform/power-fx/reference/function-update-updateif#update-function) and [**UpdateIf**](/power-platform/power-fx/reference/function-update-updateif#updateif-function) are not supported yet.
The table below contains the Power Fx formulas don't work in cards or work with limitations. All other functions are fully supported.
33
+
34
+
| Power Fx formula | Supported in cards | Limitations and suggestions |
35
+
|---------|:---:|:------------------:|
36
+
|[**Set**](/power-platform/power-fx/reference/function-set)| Yes | Requires the variable to exist and the variable type to match what you're trying to set it to. |
37
+
|[**Collect**](/power-platform/power-fx/reference/function-clear-collect-clearcollect#collect)| Yes | Requires the variable to exist and the variable type to match what you're trying to set it to. |
38
+
|[**Defaults**](/power-platform/power-fx/reference/function-defaults)| No | Use [**Collect**](/power-platform/power-fx/reference/function-clear-collect-clearcollect#collect) instead, for example, instead of `Patch(account, Defaults(account), {"Account Name": "Example Account"})` use `Collect(account, {"Account Name": "Example Account"})`. |
39
+
|[**User()**](/power-platform/power-fx/reference/function-user)| No | Instead use **Viewer**, which has a subset of information about the user viewing the card. |
40
+
|[**Clear**](/power-platform/power-fx/reference/function-clear-collect-clearcollect#clear)| No ||
41
+
|[**ClearCollect**](/power-platform/power-fx/reference/function-clear-collect-clearcollect#clearcollect)| No ||
42
+
|[**Update**](/power-platform/power-fx/reference/function-update-updateif#update-function)| No ||
43
+
|[**UpdateIf**](/power-platform/power-fx/reference/function-update-updateif#updateif-function)| No ||
44
+
| Device sensor formulas ([**Acceleration**, **App**, **Compass**, **Connection**, and **Location**](/power-platform/power-fx/reference/signals)) | No ||
45
+
|[**SaveData**, **LoadData**, and **ClearData**](/power-platform/power-fx/reference/function-savedata-loaddata)| No ||
46
+
| Form-related formulas ([**EditForm**, **NewForm**, **SubmitForm**, **ResetForm**, and **ViewForm**](/power-platform/power-fx/reference/function-form)) | No ||
Copy file name to clipboardExpand all lines: powerapps-docs/cards/make-a-card/variables/variables.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -49,10 +49,10 @@ As an example, you've created a card that counts how many times the user presses
49
49
50
50
### Using the default value for tables and records
51
51
52
-
The default value is used to set the structure for table and record variables. There are two ways to set the default value of a record or table variable:
52
+
The default value is used to set the structure for table and record variables. There are two ways to set the default value of a record or table variable:
53
53
54
54
- Using a Power Fx expression
55
-
- Using JSON
55
+
- Using JSON
56
56
57
57
You can toggle between whether you are using Power Fx or JSON using the icon on the right.
0 commit comments