Notiz
Zougrëff op dës Säit erfuerdert Autorisatioun. Dir kënnt probéieren, Iech unzemellen oder Verzeechnesser ze änneren.
Zougrëff op dës Säit erfuerdert Autorisatioun. Dir kënnt probéieren, Verzeechnesser ze änneren.
Restores the platform-default handlers for a Microsoft 365 Copilot action.
Syntax
Xrm.Copilot.addDefaultActionHandlers(actionId).then(successCallback, errorCallback);
Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
actionId |
string | Yes | The action ID to restore defaults for. Must be one of the built-in action IDs defined in addActionHandler. |
successCallback |
Function | Yes | A function to call when the operation succeeds. |
errorCallback |
Function | Yes | A function to call when the operation fails. |
Return Value
Type: Promise<void>
Remarks
Does nothing if Microsoft 365 Copilot isn't enabled.
Example
await Xrm.Copilot.addDefaultActionHandlers("MS.PA.CopilotChat.OpenRecord");
Related articles
removeDefaultActionHandlers
Xrm.Copilot (Client API reference)