Skip to content

Commit 23f93dd

Browse files
committed
updates to power-fx
1 parent 68baaa7 commit 23f93dd

13 files changed

+45
-45
lines changed

powerapps-docs/teams/add-app-notifications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The decision as to which approach you should use depends on what type of notific
8080

8181
- Power Apps sending notifications directly use formulas to define the notification logic, Power Automate flow uses a more graphical interface to set the properties of a notification. For example, from a Power Apps app, you can use the following formula to send email with the Outlook connector:
8282

83-
```powerapps-dot
83+
```power-fx
8484
Microsoft365Outlook.SendEmail("[email protected]", Summary, Description)
8585
```
8686

powerapps-docs/teams/add-tag-to-mark-prioritized-ideas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ All the changes to the Manage Ideas app are completed. The app can now be publis
116116

117117
1. To update the label text to indicate that the idea is prioritized, update the **Text** property to the following formula:
118118

119-
```powerapps-dot
119+
```power-fx
120120
Concatenate(
121121
122122
gblRecordCampaignIdea.'Owning User'.'Full Name',

powerapps-docs/teams/business-data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Now, we'll add a new screen where the app user can start or join a conversation.
212212

213213
1. Copy the following formula in the **OnSelect** event of the button.
214214

215-
```powerapps-dot
215+
```power-fx
216216
Patch(Conversations,Defaults(Conversations),{ID:MicrosoftTeams.PostMessageToChannelV3(team_ComboBox.Selected.id,channel_ComboBox.Selected.id,{content:message_TextBox.Value,contentType: "text"},{subject:"New conversation"}).id,Team:team_ComboBox.Selected.id,'Team Channel':channel_ComboBox.Selected.id, 'Team Name':team_ComboBox.Selected.displayName,'Channel Name':channel_ComboBox.Selected.displayName, Company: TemplateGalleryList1.Selected}); Set(enterMessage,false); Reset(team_ComboBox);Reset(channel_ComboBox);Reset(message_TextBox)
217217
```
218218
@@ -238,7 +238,7 @@ Now, we'll add a new screen where the app user can start or join a conversation.
238238
239239
1. Copy the following formula in the **OnSelect** event of the button.
240240
241-
```powerapps-dot
241+
```power-fx
242242
Launch(Concatenate("msteams://teams.microsoft.com/l/message/",Last(Sort(Conversations, 'Created On', Ascending)).'Team Channel',"/",Gallery1.Selected.etag,"?tenantId=",Param("tenandId"),"&groupId=",Last(Sort(Conversations, 'Created On', Ascending)).Team,"&parentMessageId=",LookUp(MicrosoftTeams.GetMessagesFromChannel(Last(Sort(Conversations, 'Created On', Ascending)).Team,Last(Sort(Conversations, 'Created On', Ascending)).'Team Channel').value,id = Last(Sort(Conversations, 'Created On', Ascending)).Team).etag,"&teamName=",Last(Sort(Conversations, 'Created On', Ascending)).'Team Name',"&channelName=",Last(Sort(Conversations, 'Created On', Ascending)).'Channel Name'),{},LaunchTarget.New)
243243
```
244244

powerapps-docs/teams/consistent-experience-across-sessions.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ To resolve the above issue, we'll use the [LoadData() and SaveData() functions](
147147

148148
1. Start with making sure that the changes we're applying are applicable only in the case of a new record. So, we're updating the variable **newMode** that will be used as a condition on the edit form to figure out what data needs to be displayed. Select **New record** and add the following formula on the **OnSelect** property of the button:
149149

150-
```powerapps-dot
150+
```power-fx
151151
NewForm(EditForm1);
152152
UpdateContext({newMode: true})
153153
```
@@ -156,7 +156,7 @@ To resolve the above issue, we'll use the [LoadData() and SaveData() functions](
156156
157157
1. Next, we'll add the data from the individual input controls to a collection, and then we'll save the data to a local file from that collection. Select the text input box—in our example it's the "DataCardValue1" of the "Name_DataCard1" on "EditForm1" for the **Name** field—enter the following formula in the **OnChange** property of the input field:
158158
159-
```powerapps-dot
159+
```power-fx
160160
Collect(
161161
colAccount,
162162
{ Column:"Name",Value:Self.Value}
@@ -170,14 +170,14 @@ To resolve the above issue, we'll use the [LoadData() and SaveData() functions](
170170
171171
Similarly, enter the following code in the **OnChange** property for **Phone** (DataCardValue2):
172172
173-
```powerapps-dot
173+
```power-fx
174174
Collect(colAccount, {Column:"Phone",Value:Self.Value});
175175
SaveData(colAccount,"colAccount");
176176
```
177177
178178
And enter the following code in **OnChange** property for **City** (DataCardValue3):
179179
180-
```powerapps-dot
180+
```power-fx
181181
Collect(colAccount {Column:"City", Value:Self.Value});
182182
SaveData(colAccount, "colAccount");
183183
```
@@ -186,7 +186,7 @@ To resolve the above issue, we'll use the [LoadData() and SaveData() functions](
186186
187187
Go to the **App** > **OnStart** property, and add the following formula:
188188
189-
```powerapps-dot
189+
```power-fx
190190
LoadData(colAccount,"colAccount", true)
191191
```
192192
@@ -198,7 +198,7 @@ To resolve the above issue, we'll use the [LoadData() and SaveData() functions](
198198
199199
For **Name** field, enter **Name_DataCard1:**
200200
201-
```powerapps-dot
201+
```power-fx
202202
If(
203203
newMode && !IsBlank(
204204
Last(
@@ -216,7 +216,7 @@ To resolve the above issue, we'll use the [LoadData() and SaveData() functions](
216216
217217
Similarly, enter the following formula in the **Default** property formula for **Phone** (Phone_DataCard1):
218218
219-
```powerapps-dot
219+
```power-fx
220220
If(
221221
newMode && !IsBlank(
222222
Last(
@@ -232,7 +232,7 @@ To resolve the above issue, we'll use the [LoadData() and SaveData() functions](
232232
233233
And use the following formula for **City** (City_DataCard1):
234234
235-
```powerapps-dot
235+
```power-fx
236236
If(
237237
newMode && !IsBlank(
238238
Last(
@@ -253,7 +253,7 @@ To resolve the above issue, we'll use the [LoadData() and SaveData() functions](
253253
254254
Use the following formula in the **OnSelect** property of the **Submit** button.
255255
256-
```powerapps-dot
256+
```power-fx
257257
SubmitForm(EditForm1);
258258
UpdateContext({editMode: false, newMode: false});
259259
Clear(colAccount);
@@ -264,7 +264,7 @@ To resolve the above issue, we'll use the [LoadData() and SaveData() functions](
264264
265265
Select the **Cancel** button, and enter the following formula:
266266
267-
```powerapps-dot
267+
```power-fx
268268
ResetForm(EditForm1);
269269
UpdateContext({editMode: false, newMode: false});
270270
Clear(colAccount);

powerapps-docs/teams/create-first-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,12 @@ To manually connect to the new data:
208208

209209
Change from:
210210

211-
```powerapps-dot
211+
```power-fx
212212
Remove(Instructions, selectedRecord); If(IsEmpty(Errors(Instructions, selectedRecord)),UpdateContext( {itemSelected:false, editMode:false, newMode:false, deleteMode:false}); Set(CurrentItem,First(Instructions)););
213213
```
214214
Change to:
215215
216-
```powerapps-dot
216+
```power-fx
217217
Remove(Recipes, selectedRecord); If(IsEmpty(Errors(Recipes, selectedRecord)),UpdateContext( {itemSelected:false, editMode:false, newMode:false, deleteMode:false}); Set(CurrentItem,First(Recipes)););
218218
```
219219
@@ -235,7 +235,7 @@ To update the selected item background color:
235235
236236
3. Update the *TemplateFill* property value in the formula bar to the following formula:
237237
238-
```powerapps-dot
238+
```power-fx
239239
If(ThisItem.IsSelected, RGBA(0,0,0,.05), RGBA(0,0,0,0))
240240
```
241241

powerapps-docs/teams/customize-sample-apps.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ variables to correctly display the desired terminology for inspections and items
105105

106106
The formula for the greeting text is in this format:
107107

108-
```powerapps-dot
108+
```power-fx
109109
"Glad to have you here, we are ready for you to " & If(Lower(gblWorkType)="inspection", "inspect", Lower(gblWorkType)) & Switch(
110110
Left(
111111
Lower(areaLabel),
@@ -131,7 +131,7 @@ variables to correctly display the desired terminology for inspections and items
131131
132132
1. Update the greeting text, such as **We are happy that you are here**.
133133
134-
```powerapps-dot
134+
```power-fx
135135
"We are happy that you are here, we are ready for you to " & If(Lower(gblWorkType)="inspection", "inspect", Lower(gblWorkType)) & Switch(
136136
Left(
137137
Lower(areaLabel),
@@ -283,13 +283,13 @@ Consider a scenario where you have multiple stores, and you want to associate lo
283283
284284
1. At the end of the 17th line, add a comma and this formula:
285285
286-
```powerapps-dot
286+
```power-fx
287287
'Store Name':Microsoft_CoreControls_TextBox1.Value
288288
```
289289
290290
This section of the formula should now look like the following:
291291
292-
```powerapps-dot
292+
```power-fx
293293
{
294294
msft_name: txtArea_EditTitle.Text,
295295
'Location Type': cmbAreaDetails_AreaType.Selected,
@@ -308,7 +308,7 @@ Consider a scenario where you have multiple stores, and you want to associate lo
308308
309309
1. Change the formula to:
310310
311-
```powerapps-dot
311+
```power-fx
312312
If(gblEditLocation,250,200)
313313
```
314314
@@ -320,7 +320,7 @@ Consider a scenario where you have multiple stores, and you want to associate lo
320320
321321
1. Change the formula to:
322322
323-
```powerapps-dot
323+
```power-fx
324324
If(gblEditLocation,282,232)
325325
```
326326
@@ -332,7 +332,7 @@ Consider a scenario where you have multiple stores, and you want to associate lo
332332
333333
1. Change the formula to:
334334
335-
```powerapps-dot
335+
```power-fx
336336
If(gblViewInspection, false, true)
337337
```
338338

powerapps-docs/teams/extend-ideas-discussions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ Now we'll update the button that submits ideas to store the message ID in the **
8282

8383
1. Find the part of the formula that begins with the following:
8484

85-
```powerapps-dot
85+
```power-fx
8686
If(
8787
tglIdeaDetailControls_PostToTeams.Value,......
8888
```
8989
9090
And replace that part of the formula with the following formula:
9191
92-
```powerapps-dot
92+
```power-fx
9393
If(
9494
tglIdeaDetailControls_PostToTeams.Value,
9595
If(
@@ -155,7 +155,7 @@ Now we'll update the button that submits ideas to store the message ID in the **
155155
> [!NOTE]
156156
> The example below uses **msteams:** as the launcher. This launcher can also be **https:**, or dynamically switch to use the appropriate client.
157157
158-
```powerapps-dot
158+
```power-fx
159159
With({varMessage: gblRecordCampaignIdea.'Message ID'},Launch(Concatenate("msteams://teams.microsoft.com/l/message/",gblSettingNotificationChannelId,"/",varMessage,"?groupId=",gblSettingTeamId,"&parentMessageId=",varMessage)))
160160
```
161161

powerapps-docs/teams/integrate-azure-ad.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ We'll create an app with a button that will only show up if the user is a member
112112

113113
1. Enter the following formula for the app OnStart:
114114

115-
```powerapps-dot
115+
```power-fx
116116
If(
117117
!IsEmpty(
118118
AzureAD.CheckMemberGroups(

powerapps-docs/teams/integrate-calls-and-meetings.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Well create an app with a gallery of users and buttons on each of the display fo
6868

6969
1. Select the app from the left-pane, and update the **OnStart** property of the app with the following formula:
7070

71-
```powerapps-dot
71+
```power-fx
7272
Set(gblIsHostClientWeb,Param("hostClientType")="web")
7373
```
7474
@@ -93,7 +93,7 @@ Well create an app with a gallery of users and buttons on each of the display fo
9393
9494
Copy the following formula in the **OnSelect** property of the button:
9595
96-
```powerapps-dot
96+
```power-fx
9797
If(
9898
gblIsHostClientWeb,
9999
Launch(
@@ -126,7 +126,7 @@ Well create an app with a gallery of users and buttons on each of the display fo
126126
127127
1. Copy the following formula in the **OnSelect** property of the new button:
128128
129-
```powerapps-dot
129+
```power-fx
130130
If(
131131
gblIsHostClientWeb,
132132
Launch(
@@ -154,7 +154,7 @@ Well create an app with a gallery of users and buttons on each of the display fo
154154
155155
1. Copy the following formula in the **OnSelect** property of the new button:
156156
157-
```powerapps-dot
157+
```power-fx
158158
If(
159159
gblIsHostClientWeb,
160160
Launch(

powerapps-docs/teams/integrate-planner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ We'll create an app with five fields capturing details that will be used to crea
196196

197197
1. Copy the following formula in the **OnSelect** property of **Button_CreateTask**.
198198

199-
```powerapps-dot
199+
```power-fx
200200
Planner.CreateTaskV3(
201201
Param("groupId"),
202202
PlannerID.Selected.id,

0 commit comments

Comments
 (0)