Codeunit 6276 Sust. Int. Table Subscriber

Sustainability, Microsoft.Sustainability.CRM

Source AL, 1,207 lines

src/Apps/W1/Sustainability/app/src/CRM/SustIntTableSubscriber.Codeunit.allines 13 to 28 of 1,207, Copyright (c) Microsoft Corporation. MIT

codeunit 6276 "Sust. Int. Table Subscriber"{    var        SustainabilitySetup: Record "Sustainability Setup";        CRMSynchHelper: Codeunit "CRM Synch. Helper";        DoesNotExistErr: Label '%1 %2 doesn''t exist in %3', Comment = '%1 = a table name, %2 - a guid, %3 = Field Service service name';        NotCoupledToTableErr: Label 'The %1 %2 is not coupled to a %3.', Comment = '%1 = Table Caption, %2 = primary key value, %3 = Table Caption';        RecordMustBeCoupledErr: Label '%1 %2 must be coupled to %3.', Comment = '%1 = Table Caption, %2 = primary key value, %3 - service name';        CannotSynchErr: Label 'Cannot synchronize the %1 %2.', Comment = '%1 = Table Caption, %2 = primary key value';        IsAlreadySynchedErr: Label '%1 %2 is already synchronized.', Comment = '%1 = Table Caption, %2 = primary key value';    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Integration Record Synch.", 'OnTransferFieldData', '', true, false)]    local procedure OnTransferFieldData(SourceFieldRef: FieldRef; DestinationFieldRef: FieldRef; var NewValue: Variant; var IsValueFound: Boolean; var NeedsConversion: Boolean)    begin        if not SustainabilitySetup.IsDataverseIntegrationEnabled() then            exit;

All 1,207 lines