Skip to content

Commit 08a2608

Browse files
committed
adds all missing pfx formulas
1 parent 540d133 commit 08a2608

File tree

2 files changed

+62
-13
lines changed

2 files changed

+62
-13
lines changed

powerapps-docs/cards/make-a-card/power-fx/intro-to-pfx.md

Lines changed: 60 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,63 @@ The [Power Fx documentation](/power-platform/power-fx/overview) is the main sour
2929

3030
## Known limitations of using Power Fx in cards
3131

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.
40-
- Device sensor formulas ([**Acceleration**, **App**, **Compass**, **Connection**, and **Location**](/power-platform/power-fx/reference/signals)) don't work.
41-
- [**SaveData**, **LoadData**, and **ClearData**](/power-platform/power-fx/reference/function-savedata-loaddata) don't work.
42-
- Form-related formulas ([**EditForm**, **NewForm**, **SubmitForm**, **ResetForm**, and **ViewForm**](/power-platform/power-fx/reference/function-form)) don't work.
32+
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 | |
47+
| AddColumns | No | |
48+
| Concurrent | No | |
49+
| DropColumns | No | |
50+
| EncodeUrl | No | |
51+
| IsEmpty | No | |
52+
| IsMatch | No | |
53+
| IsType | No | |
54+
| JSON | No | |
55+
| Match | No | |
56+
| PlainText | No | |
57+
| RemoveIf | No | |
58+
| SortByColumns | No | |
59+
| Update | No | |
60+
| UpdateIf | No | |
61+
| AsType | No | |
62+
| Distinct | No | |
63+
| exactin | No | |
64+
| GroupBy | No | |
65+
| in | No | |
66+
| RenameColumns | No | |
67+
| Search | No | |
68+
| ShowColumns | No | |
69+
| UTCNow | No | |
70+
| UTCToday | No | |
71+
| Validate | No | |
72+
| Weekday | No | |
73+
| As | No | |
74+
| Calendar | No | |
75+
| Choices | No | |
76+
| Clock | No | |
77+
| ColorFade | No | |
78+
| ColorValue | No | |
79+
| Errors | No | |
80+
| HashTags | No | |
81+
| ISOWeekNum | No | |
82+
| Language | No | |
83+
| MatchAll | No | |
84+
| Refresh | No | |
85+
| RGBA | No | |
86+
| WeekNum | No | |
87+
| Notify | No | |
88+
| Select | No | |
89+
| SetProperty | No | |
90+
| Download | No | |
91+
| SetFocus | No | |

powerapps-docs/cards/make-a-card/variables/variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ As an example, you've created a card that counts how many times the user presses
4949

5050
### Using the default value for tables and records
5151

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:
5353

5454
- Using a Power Fx expression
55-
- Using JSON
55+
- Using JSON
5656

5757
You can toggle between whether you are using Power Fx or JSON using the icon on the right.
5858

0 commit comments

Comments
 (0)