Codeunit 5397 CDS Transformation Rule Mgt.

Base Application, Microsoft.Integration.Dataverse

Source AL, 57 lines

src/Layers/W1/BaseApp/Integration/Dataverse/CDSTransformationRuleMgt.Codeunit.allines 10 to 25 of 57, Copyright (c) Microsoft Corporation. MIT

codeunit 5397 "CDS Transformation Rule Mgt."{    var        TransformationRuleInUseErr: Label '%1 cannot be deleted because it is in use.', Comment = '%1 - the name of the transformation rule';    [EventSubscriber(ObjectType::Table, Database::"Transformation Rule", 'OnBeforeDeleteEvent', '', false, false)]    procedure OnDeleteTransformationRule(var Rec: Record "Transformation Rule"; RunTrigger: Boolean)    begin        if Rec.IsTemporary() then            exit;        if IsTransformationRuleInUse(Rec) then            Error(TransformationRuleInUseErr, Rec.Code);    end;    local procedure IsTransformationRuleInUse(Rec: Record "Transformation Rule"): Boolean

All 57 lines

Public procedures 2 in 29

OnDeleteTransformationRule(var Rec: Record "Transformation Rule"; RunTrigger: Boolean)17-29
ApplyTransformations(SourceRecordRef: RecordRef; var DestinationRecordRef: RecordRef; IntegrationTableMapping: Record "Integration Table Mapping")new in 25

All 4 procedures in 17-29

Changes 2 in 28

List17181920212223242526272829
Procedures32
ApplyTransformations(SourceRecordRef: RecordRef; var DestinationRecordRef: RecordRef)gone after 27
gone
GetIntegrationTableMappingName(RecRef: RecordRef): Textgone after 27
gone

All 5 changes in 17-29