Skip to content

Commit 131f863

Browse files
authored
Merge branch 'main' into BrynBAV-patch-1
2 parents 52f43f5 + cd33e08 commit 131f863

File tree

85 files changed

+375
-345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+375
-345
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Browse to the [Microsoft 365 admin center](https://admin.microsoft.com) and sign in using Office 365 Global administrator credentials.
1+
Browse to the [Microsoft 365 admin center](https://admin.microsoft.com) and sign in using Office 365 credentials.

powerapps-docs/maker/canvas-apps/add-editable-tables.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ This step adds a form control to add new items.
9393

9494
1. In the formula bar, enter the following formula.
9595

96-
```powerapps-dot
96+
```power-fx
9797
SubmitForm(Form1);
9898
NewForm(Form1);
9999
```
@@ -131,7 +131,7 @@ This step adds a blank vertical gallery to edit the items as an editable table.
131131
132132
1. Update the **Default** property formula for the first text input row within the gallery:
133133
134-
```powerapps-dot
134+
```power-fx
135135
ThisItem.Product
136136
```
137137
@@ -148,7 +148,7 @@ This step adds a blank vertical gallery to edit the items as an editable table.
148148
149149
1. Select the first row from the first column inside the gallery, and add the following formula to the **OnChange** property with changes to column and control names as appropriate:
150150
151-
```powerapps-dot
151+
```power-fx
152152
Patch('Editable tables',ThisItem,{Product:TextInput8.Text})
153153
```
154154
@@ -175,7 +175,7 @@ This step adds the options to edit and cancel the edit progress. Gallery having
175175
176176
1. Select the app **OnStart** property, and add the following formula with changes to gallery name as appropriate:
177177
178-
```powerapps-dot
178+
```power-fx
179179
Gallery2.DisplayMode = "galleryDisplayMode";
180180
Set(galleryDisplayMode, DisplayMode.Disabled);
181181
```
@@ -216,7 +216,7 @@ As the data in the connected data source grows, it becomes difficult to find a s
216216
217217
1. Update the **Items** property for the gallery with the following formula instead of the table name, replacing table, and control names as appropriate.
218218
219-
```powerapps-dot
219+
```power-fx
220220
If(IsBlank(TextInput15.Text),'Editable tables',Filter('Editable tables',(TextInput15.Text in Product) || TextInput15.Text in Segment))
221221
```
222222

powerapps-docs/maker/canvas-apps/add-gallery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The **[Items](controls/properties-core.md)** property of a **Gallery** control d
8787

8888
1. Set the **[Items](controls/properties-core.md)** property of the **Gallery** control to this formula:
8989

90-
```powerapps-dot
90+
```power-fx
9191
Sort
9292
(If
9393
(IsBlank(TextSearchBox1.Text),

powerapps-docs/maker/canvas-apps/add-list-box-drop-down-list-radio-button.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ In these steps, you used an expression to create a list of items. You can apply
105105

106106
2. Set **[OnSelect](controls/properties-core.md)** property on **btnReset** to this formula:
107107

108-
```powerapps-dot
108+
```power-fx
109109
ClearCollect(MyItems, {value: "circle"},{value: "triangle"},{value: "rectangle"})
110110
```
111111
@@ -132,7 +132,7 @@ In these steps, you used an expression to create a list of items. You can apply
132132
133133
11. Set **[OnSelect](controls/properties-core.md)** property of **btnAdd** to the following formula:
134134
135-
```powerapps-dot
135+
```power-fx
136136
Collect(MyItems,{value: txtAdd.Text}); Reset(txtAdd)
137137
```
138138
@@ -163,7 +163,7 @@ In these steps, you used an expression to create a list of items. You can apply
163163
164164
3. Set **[OnSelect](controls/properties-core.md)** property of **btnDelete** to the following formula:
165165
166-
```powerapps-dot
166+
```power-fx
167167
Remove(MyItems, lbItems.Selected)
168168
```
169169

powerapps-docs/maker/canvas-apps/add-notifications.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ In this article, the sample app used for notifications is built from the default
7979
### Sample formulas
8080
Send a basic notification.
8181

82-
```powerapps-dot
82+
```power-fx
8383
PowerAppsNotification.SendPushNotification(
8484
{
8585
recipients: ["f60ccf6f-7579-4f92-967c-2920473c966b", "72f988bf-86f1-41af-91ab-2d7cd011db47"],
@@ -90,7 +90,7 @@ PowerAppsNotification.SendPushNotification(
9090

9191
Send a notification that opens an app and passes along specific parameters.
9292

93-
```powerapps-dot
93+
```power-fx
9494
PowerAppsNotification.SendPushNotification(
9595
{
9696

powerapps-docs/maker/canvas-apps/application-insights.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Now create a new component in your app to collect feedback on each screen, and w
186186

187187
1. Select **FrownIcon**, select the **OnSelect** property, and then enter the following expression in the formula bar:
188188

189-
```powerapps-dot
189+
```power-fx
190190
Trace(
191191
"App Feedback",
192192
TraceSeverity.Information,
@@ -207,7 +207,7 @@ Now create a new component in your app to collect feedback on each screen, and w
207207
208208
1. Select **SmileIcon**, select the **OnSelect** property, and then enter the following expression in the formula bar:
209209
210-
```powerapps-dot
210+
```power-fx
211211
Trace(
212212
"App Feedback",
213213
TraceSeverity.Information,

powerapps-docs/maker/canvas-apps/connections/azure-devops.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ In this section, we'll use the [ListQueriesInFolder](/connectors/visualstudiotea
5151

5252
1. Enter the following formula for the **Items** property of the gallery, replacing the example parameter values as appropriate.
5353

54-
```powerapps-dot
54+
```power-fx
5555
AzureDevOps.ListQueriesInFolder("Project","Organization","Folder").value
5656
```
5757
@@ -82,7 +82,7 @@ Now we use [GetQueryResultsV2](/connectors/visualstudioteamservices/#get-query-r
8282
8383
1. Enter the following formula for the **Items** property of the gallery, replacing the example parameter values as appropriate. Substitute your Project and Organization names as appropriate.
8484
85-
```powerapps-dot
85+
```power-fx
8686
AzureDevOps.GetQueryResultsV2("Project", Text(Gallery1.Selected.Id),"Organization").value
8787
```
8888
@@ -100,7 +100,7 @@ The returned result of **GetQueryResultsV2** is dynamic. And the values are ther
100100
101101
However you can access some of the values. Azure Dev Ops returns a basic set of values for all items that are typed. Select the data card in the gallery and insert two text label. Set the text property of the labels as follows:
102102
103-
```powerapps-dot
103+
```power-fx
104104
ThisItem.Value.'System.WorkItemType'
105105
ThisItem.Value.'System.Title'
106106
```
@@ -162,7 +162,7 @@ The app shows a list of all queries, and the list of work items for the selected
162162
### Adding untyped and dynamic return values to your forms
163163
So far we have been using the Edit form which simplifies the data access story by providing a common DataSource and Item property which all of the data cards in the form can work with. If you use the Edit form, to access the untyped values make sure you set **both** the data source and the item properties as follows: (Substituting in your values for Organization and Project.)
164164

165-
```powerapps-dot
165+
```power-fx
166166
AzureDevOps.GetWorkItemDetails(Gallery2.Selected.Value.'System.Id',Organization, Project, Gallery2.Selected.Value.'System.WorkItemType')
167167
```
168168
When you pass the text property "WorkItemType", for instance, "Feature", it allows you to switch from items such as Features and Work Items. Since the set of fields for these items differ from one another, the return type from this call is dynamic.
@@ -172,7 +172,7 @@ You can access specific values using the common method Text(ThisItem.Value.'Syst
172172
If you're not utilizing an Edit form, but instead using a container, then you can retrieve these values by using a formula such as the one below, which retrieves information from a custom team field.
173173

174174

175-
```powerapps-dot
175+
```power-fx
176176
Text(AzureDevOps.GetWorkItemDetails(Gallery2.Selected.Value.'System.Id',Organization, Project, Gallery2.Selected.Value.'System.WorkItemType').fields.One_custom_CustomField1)
177177
```
178178

@@ -184,7 +184,7 @@ Text(AzureDevOps.GetWorkItemDetails(Gallery2.Selected.Value.'System.Id',Organiza
184184

185185
To update a value in Azure Dev ops use the UpdateWorkItem in the OnSelect of a button.
186186

187-
```powerapps-dot
187+
```power-fx
188188
AzureDevOps.UpdateWorkItem(
189189
Gallery2.Selected.Value.'System.Id',
190190
Organization,

powerapps-docs/maker/canvas-apps/connections/connection-azure-blob-storage.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Now that you have the app connected to Azure Blob Storage, let's add galleries t
9797

9898
1. Set the **Items** property of the gallery to:
9999

100-
```powerapps-dot
100+
```power-fx
101101
AzureBlobStorage.ListRootFolderV2().value
102102
```
103103
@@ -117,7 +117,7 @@ Now that you have the app connected to Azure Blob Storage, let's add galleries t
117117
118118
1. Set the **Items** property of the gallery to:
119119
120-
```powerapps-dot
120+
```power-fx
121121
AzureBlobStorage.ListFolderV2(Gallery1.Selected.Id).value
122122
```
123123
@@ -178,7 +178,7 @@ Let's configure the app with controls and logic to allow upload of files to the
178178
179179
1. Set the **OnSelect** property of the button to:
180180
181-
```powerapps-dot
181+
```power-fx
182182
AzureBlobStorage.CreateFile(Gallery1.Selected.Name,TextInput1.Text, UploadedImage1.Image)
183183
```
184184
@@ -211,7 +211,7 @@ So far you've added the ability to view containers, files from the selected cont
211211
212212
1. Set the **OnSelect** property of the download icon to:
213213
214-
```powerapps-dot
214+
```power-fx
215215
Launch(AzureBlobStorage.CreateShareLinkByPath(ThisItem.Path).WebUrl)
216216
```
217217
@@ -220,7 +220,7 @@ So far you've added the ability to view containers, files from the selected cont
220220
> [!IMPORTANT]
221221
> SAS URI created using **CreateShareLinkByPath** has a [default expiry](/connectors/azureblob#create-sas-uri-by-path) of 24 hours. If you have a business requirement to expire the URI in a shorter or different time, consider updates to this formula. For example, the below sample expires the URI in 1 hour using [Now()](../functions/function-datevalue-timevalue.md) and [DateAdd()](../functions/function-dateadd-datediff.md) functions.
222222
223-
```powerapps-dot
223+
```power-fx
224224
Launch(AzureBlobStorage.CreateShareLinkByPath(ThisItem.Path,{ExpiryTime:DateAdd( Now(),1)}).WebUrl)
225225
```
226226
@@ -243,7 +243,7 @@ You can use **Media type**, or **Path** fields for the gallery to optionally dis
243243
244244
For example, to filter the files with the file extension type of **.pdf**, use the following sample formula.
245245
246-
```powerapps-dot
246+
```power-fx
247247
If(".pdf" in Gallery2.Selected.Path, AzureBlobStorage.GetFileContent(Gallery2.Selected.Id))
248248
```
249249

@@ -261,13 +261,13 @@ For example, the following formulas allow you to update the collection for the t
261261

262262
1. Append to the upload button **OnSelect** property:
263263

264-
```powerapps-dot
264+
```power-fx
265265
ClearCollect(TopLevelList, AzureBlobStorage.ListRootFolderV2().value)
266266
```
267267
268268
3. Add to the screen **OnVisible** property:
269269
270-
```powerapps-dot
270+
```power-fx
271271
ClearCollect(TopLevelList, AzureBlobStorage.ListRootFolderV2().value)
272272
```
273273

powerapps-docs/maker/canvas-apps/connections/connection-azure-sqldatabase.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ To use a stored procedure in Power Apps, first prefix the stored procedure name
8484

8585
Arguments are passed as a Power Apps record with named value pairs:
8686

87-
```powerapps-dot
87+
```power-fx
8888
<datasourceName>.<StoredprocedureName>({<paramName1: value, paramName2: value, ... >})
8989
```
9090

@@ -98,23 +98,23 @@ A stored procedure can return a code, values from Out parameters or the results
9898

9999
#### Return code
100100

101-
```powerapps-dot
101+
```power-fx
102102
<datasourceName>.<StoredprocedureName>({<paramName1: value, paramName2: value, ... >}).ReturnCode
103103
```
104104

105105
Use this for accessing the results of a return statement.
106106

107107
#### Output parameters
108108

109-
```powerapps-dot
109+
```power-fx
110110
<datasourceName>.<StoredprocedureName>({<paramName1: value, paramName2: value, ... >}).OutputParameters.<parameterName>
111111
```
112112

113113
Take note to use the parameter name as it appears in the JSON payload.
114114

115115
#### Result Sets
116116

117-
```powerapps-dot
117+
```power-fx
118118
<datasourceName>.<StoredprocedureName>({<paramName1: value, paramName2: value, ... >}).ResultSets.Table1
119119
```
120120

@@ -126,7 +126,7 @@ Some complicated stored procedures return an untyped result. These results aren'
126126

127127
In this example, we first pull the results into a variable named "MyUntypedObject". Then we pull 'Table1' from that variable and put it into a variable named 'table1'. This step isn't strictly necessary. It's useful however to put all the results in a variable at a point in time and then pull out the parts you need. Then, we iterate through table1 and extract the JSON elements in named value pairs. Be sure to match the names with the names that are returned in the JSON payload. To validate, open a Power Apps monitor and look at the body section the data node for a record.
128128

129-
```powerapps-dot
129+
```power-fx
130130
Set(
131131
<MyUntypedObject>,
132132
<datasourceName>.<StoredprocedureName>(
@@ -156,27 +156,27 @@ You can access a stored procedure for the **Items** property of a gallery after
156156

157157
For example, your access of a stored procedure off of a data source named 'Paruntimedb' with a stored procedure named 'dbo.spo_show_all_library_books()' will look like the following.
158158

159-
```powerapps-dot
159+
```power-fx
160160
Paruntimedb.dbospshowalllibrarybooks().ResultSets.Table1
161161
```
162162

163163
This populates the gallery with records. However, stored procedures are an addition of **action** behaviors to the tabular model. Refresh() only works with tabular data sources and can't be used with stored procedures. Then you need to refresh the gallery when a record is created, updated, or deleted. When you use a Submit() on a form for a tabular data source, it effectively calls Refresh() under the covers and updates the gallery.
164164

165165
To get around this limitation, use a variable in the OnVisible property for the screen and set the stored procedure to the variable.
166166

167-
```powerapps-dot
167+
```power-fx
168168
Set(SP_Books, Paruntimedb.dbospshowalllibrarybooks().ResultSets.Table1);
169169
```
170170

171171
And then set the 'Items' property of the gallery to the variable name.
172172

173-
```powerapps-dot
173+
```power-fx
174174
SP_Books
175175
```
176176

177177
Then after you create, update, or delete a record with a call to the stored procedure, set the variable again. This updates the gallery.
178178

179-
```powerapps-dot
179+
```power-fx
180180
Paruntimedb.dbonewlibrarybook({
181181
book_name: DataCardValue3_2.Text,
182182
author: DataCardValue1_2.Text,

powerapps-docs/maker/canvas-apps/connections/connection-office365-users.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ If you create a contact and select that contact in the browse screen of the app,
146146

147147
1. Update the vertical gallery formula to the following.
148148

149-
```powerapps-dot
149+
```power-fx
150150
Office365Users.SearchUserV2({searchTerm:TextInput1.Text,top:5}).value
151151
```
152152

0 commit comments

Comments
 (0)