Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)