Codeunit "Copilot Capability"

ID 7773
Namespace: System.AI

The Copilot Capability codeunit is used to register, modify, and delete Copilot capabilities.

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

RegisterCapability

Register a capability.

procedure RegisterCapability(CopilotCapability: Enum "Copilot Capability", LearnMoreUrl: Text[2048])

Parameters

Name Type Description
CopilotCapability System.AI."Copilot Capability"

The capability.

LearnMoreUrl Text[2048]

The learn more url.

RegisterCapability

Register a capability.

procedure RegisterCapability(CopilotCapability: Enum "Copilot Capability", CopilotAvailability: Enum "Copilot Availability", LearnMoreUrl: Text[2048])

Parameters

Name Type Description
CopilotCapability System.AI."Copilot Capability"

The capability.

CopilotAvailability System.AI."Copilot Availability"

The availability.

LearnMoreUrl Text[2048]

The learn more url.

ModifyCapability

Modify an existing capability.

procedure ModifyCapability(CopilotCapability: Enum "Copilot Capability", CopilotAvailability: Enum "Copilot Availability", LearnMoreUrl: Text[2048])

Parameters

Name Type Description
CopilotCapability System.AI."Copilot Capability"

The capability.

CopilotAvailability System.AI."Copilot Availability"

The availability.

LearnMoreUrl Text[2048]

The learn more url.

UnregisterCapability

Unregister a capability.

procedure UnregisterCapability(CopilotCapability: Enum "Copilot Capability")

Parameters

Name Type Description
CopilotCapability System.AI."Copilot Capability"

The capability.

IsCapabilityRegistered

Check if your capability has been registered.

procedure IsCapabilityRegistered(CopilotCapability: Enum "Copilot Capability"): Boolean

Parameters

Name Type Description
CopilotCapability System.AI."Copilot Capability"

The capability.

Returns

Type Description
Boolean

True if the capability has been registered.

Remarks

Capabilities are tied to the module registering it. Checking for a capability will check if the enum and app id of your module exists.

IsCapabilityRegistered

Check if a specific capability has been registered.

procedure IsCapabilityRegistered(CopilotCapability: Enum "Copilot Capability", AppId: Guid): Boolean

Parameters

Name Type Description
CopilotCapability System.AI."Copilot Capability"

The capability.

AppId Guid

The app id associated with the capability.

Returns

Type Description
Boolean

True if the capability has been registered.

Remarks

Capabilities are tied to the module registering it. Checking for a capability will check if the enum and app id of the module exists.

IsCapabilityActive

Check if your capability is active.

procedure IsCapabilityActive(CopilotCapability: Enum "Copilot Capability"): Boolean

Parameters

Name Type Description
CopilotCapability System.AI."Copilot Capability"

The capability.

Returns

Type Description
Boolean

True if the capability is active.

IsCapabilityActive

Check if the capability is active.

procedure IsCapabilityActive(CopilotCapability: Enum "Copilot Capability", AppId: Guid): Boolean

Parameters

Name Type Description
CopilotCapability System.AI."Copilot Capability"

The capability.

AppId Guid

The app id associated with the capability.

Returns

Type Description
Boolean

True if the capability is active.

See also