Codeunit 1887 Environment Cleanup Impl
Source AL, 51 lines
src/System Application/App/Environment Cleanup/src/EnvironmentCleanupImpl.Codeunit.allines 10 to 25 of 51, Copyright (c) Microsoft Corporation. MIT
codeunit 1887 "Environment Cleanup Impl"{ Access = Internal; InherentEntitlements = X; InherentPermissions = X; Permissions = tabledata Company = r; [EventSubscriber(ObjectType::Codeunit, Codeunit::"Environment Triggers", OnAfterCopyEnvironmentPerDatabase, '', false, false)] local procedure OnAfterCopyEnvironmentPerDatabase(SourceEnvironmentType: Option Production,Sandbox; SourceEnvironmentName: Text; DestinationEnvironmentType: Option Production,Sandbox; DestinationEnvironmentName: Text) var EnvironmentCleanup: Codeunit "Environment Cleanup"; SourceType, DestinationType : Enum "Environment Type"; begin SourceType := ConvertEnvironmentOptionToEnum(SourceEnvironmentType); DestinationType := ConvertEnvironmentOptionToEnum(DestinationEnvironmentType); EnvironmentCleanup.OnClearDatabaseConfig(SourceType, DestinationType);