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/maker/model-driven-apps/customize-copilot-chat.md
+1-62Lines changed: 1 addition & 62 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.service: powerapps
6
6
ms.subservice: mda-maker
7
7
ms.author: hemantg
8
8
ms.reviewer: matp
9
-
ms.date: 02/05/2025
9
+
ms.date: 02/12/2025
10
10
ms.topic: how-to
11
11
applies_to:
12
12
- "powerapps"
@@ -186,67 +186,6 @@ beginDialog:
186
186
> [!NOTE]
187
187
> If your agent supports multiple languages and needs prompt guide translation, all your user facing question strings must be set using a `SetTextVariable`.
188
188
189
-
## Refresh a form using Copilot chat response
190
-
191
-
For scenarios where a Copilot interaction updates the currently open record and you need to refresh the page to view the latest data, use the client action `MS.PA.Data.Refresh`.
192
-
193
-
The action has this option.
194
-
195
-
|Option|Type|Required| Detail|
196
-
|----------|------------|----------|------------|
197
-
|save|boolean| optional|`true` : save the form and then the form is refreshed. <br/><br/>`false` : If the form is dirty, it doesn't refresh the page and the action fails. <br/>If the form isn't dirty, the page is refreshed.<br/><br>If the value isn't provided, the save option defaults to false. |
198
-
199
-
## Steps to use the action
200
-
201
-
### Add new topic to Copilot chat
202
-
203
-
In Copilot Studio, you can add topics to your app’s Copilot agent. These topics can be customized to use various trigger types.
204
-
205
-
:::image type="content" source="media/mda-copilot-refresh-action-topic.png" alt-text="topic for refresh action" lightbox="media/mda-copilot-refresh-action-topic.png":::
206
-
207
-
In this action we have set the trigger as **refresh demo** and to update the record using a flow after the flow is finished we send an event Activity with name `MS.PA.Data.Refresh` and value `{"save":"true"}` so any unsaved changes are saved.
208
-
209
-
### Trigger the topic
210
-
211
-
To trigger this topic you need to send the string **refresh demo** that was set in previous step to trigger the topic.
212
-
213
-
In this example, the name of the account is set to **Microsoft** and then the page is refreshed.
214
-
215
-
:::image type="content" source="media/mda-copilot-refresh-demo.gif" alt-text="demo for refresh action" lightbox="media/mda-copilot-refresh-demo.gif":::
216
-
217
-
### Known limitation for refresh page action
218
-
219
-
The **refresh page** action is currently only supported for a table record page.
220
-
221
-
### Full topic code
222
-
223
-
```yml
224
-
kind: AdaptiveDialog
225
-
beginDialog:
226
-
kind: OnRecognizedIntent
227
-
id: main
228
-
intent:
229
-
triggerQueries:
230
-
- refresh demo
231
-
232
-
actions:
233
-
- kind: InvokeFlowAction
234
-
id: invokeFlowAction_ZD9uan
235
-
input: {}
236
-
output: {}
237
-
flowId: 04ab2477-4fe3-ef11-be1f-6045bd045f24
238
-
239
-
- kind: SendActivity
240
-
id: sendActivity_5EM6Me
241
-
activity:
242
-
kind: EventActivity
243
-
value: "{\"save\":\"true\"}"
244
-
name: MS.PA.Data.Refresh
245
-
246
-
inputType: {}
247
-
outputType: {}
248
-
```
249
-
250
189
## Known limitations
251
190
252
191
- Copilot chat agents currently aren’t identified by the platform as a dependency. You must manually add the relevant Copilot chat agent to your model-driven app solution before export and import to another environment.
0 commit comments