Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
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)