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.
Returns whether Microsoft 365 Copilot is enabled in the current environment.
Syntax
Xrm.Copilot.isM365CopilotEnabled().then(successCallback, errorCallback);
Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
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<boolean>
Returns true if Microsoft 365 Copilot is enabled in the current environment; false otherwise.
Remarks
Enablement is determined by a ranked sequence of checks: a feature control kill switch, three parallel eligibility checks (license, environment setting, and Dataverse indexing status), an optional app-level setting override, and a gradual rollout flag. The result is cached for 30 minutes, and concurrent calls are deduplicated.
All other Microsoft 365 Copilot methods check this value before executing and complete without action if it returns false.
Example
const isEnabled = await Xrm.Copilot.isM365CopilotEnabled();
if (isEnabled) {
// Show Copilot-related controls
}