Codeunit 8351 MCP Config Implementation

System Application, System.MCP

Source AL, 1,691 lines

src/System Application/App/MCP/src/Configuration/Codeunits/MCPConfigImplementation.Codeunit.allines 16 to 31 of 1,691, Copyright (c) Microsoft Corporation. MIT

codeunit 8351 "MCP Config Implementation"{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    var        DefaultConfigCannotBeDeactivatedErr: Label 'The default configuration cannot be deactivated.';        DefaultConfigCannotBeDeletedErr: Label 'The default configuration cannot be deleted.';        DynamicToolModeCannotBeDisabledErr: Label 'Dynamic tool mode cannot be disabled for the default configuration.';        DiscoverReadOnlyObjectsCannotBeDisabledErr: Label 'Access to all read-only objects cannot be disabled for the default configuration.';        CreateUpdateDeleteNotAllowedErr: Label 'Create, update and delete tools are not allowed for this MCP configuration.';        ToolsCannotBeAddedToDefaultConfigErr: Label 'Tools cannot be added to the default configuration.';        PageNotFoundErr: Label 'Page not found.';        QueryNotFoundErr: Label 'Query not found.';        CodeunitNotFoundErr: Label 'Codeunit not found.';

All 1,691 lines

Procedures 86

ProcedureVersions
internal GetConfigurationIdByName(Name: Text[100]): Guidnew in 27
internal CreateConfiguration(Name: Text[100]; Description: Text[250]): Guidnew in 27
internal ActivateConfiguration(ConfigId: Guid; Active: Boolean)new in 27
internal AllowCreateUpdateDeleteTools(ConfigId: Guid; Allow: Boolean)new in 27
internal DisableCreateUpdateDeleteToolsInConfig(ConfigId: Guid)new in 27
internal DeleteConfiguration(ConfigId: Guid)new in 27
internal CopyConfiguration(SourceConfigId: Guid)new in 27
internal CopyConfiguration(SourceConfigId: Guid; NewName: Text[100]; NewDescription: Text[250]): Guidnew in 27
internal EnableDynamicToolMode(ConfigId: Guid; Enable: Boolean)new in 27
internal EnableDiscoverReadOnlyObjects(ConfigId: Guid; Enable: Boolean)new in 27
internal CreateDefaultConfiguration()new in 27
internal IsDefaultConfiguration(MCPConfiguration: Record "MCP Configuration"): Booleannew in 27
internal CreateAPITool(ConfigId: Guid; APIPageId: Integer; ValidateAPIPublisher: Boolean): Guid27 to 27
internal GetAPIToolId(ConfigId: Guid; APIPageId: Integer): Guid27 to 27
internal DeleteTool(ToolId: Guid)new in 27
internal AllowRead(ToolId: Guid; Allow: Boolean)new in 27
internal AllowCreate(ToolId: Guid; Allow: Boolean)new in 27
internal AllowModify(ToolId: Guid; Allow: Boolean)new in 27
internal AllowDelete(ToolId: Guid; Allow: Boolean)new in 27
internal AllowBoundActions(ToolId: Guid; Allow: Boolean)27 to 28

All 86 procedures

Changes 23 in 29

List17181920212223242526272829
Procedures4623
internal AllowBoundActions(ToolId: Guid; Allow: Boolean)27 to 28
gone
internal LookupAPIPageTools(var PageMetadata: Record "Page Metadata"): Boolean28 to 28
gone
internal LookupAPIQueryTools(var QueryMetadata: Record "Query Metadata"): Boolean28 to 28
gone
internal ValidateAPIPageTool(PageId: Integer; ValidateAPIPublisher: Boolean)new in 28changed in 29
changed, was internal ValidateAPIPageTool(PageId: Integer; ValidateAPIPublisher: Boolean): Record "Page Metadata"
internal ValidateAPIQueryTool(QueryId: Integer)new in 28changed in 29
changed, was internal ValidateAPIQueryTool(QueryId: Integer): Record "Query Metadata"
internal LoadSystemTools(var MCPSystemTool: Record "MCP System Tool")28 to 28
gone

All 69 changes in 27-29