Codeunit 5342 CRM Synch. Helper

Base Application, Microsoft.Integration.Dataverse

Source AL, 2,194 lines

src/Layers/W1/BaseApp/Integration/D365Sales/CRMSynchHelper.Codeunit.allines 32 to 47 of 2,194, Copyright (c) Microsoft Corporation. MIT

codeunit 5342 "CRM Synch. Helper"{    Permissions = TableData "Sales Invoice Header" = m;    trigger OnRun()    begin    end;    var        TempCRMPricelevel: Record "CRM Pricelevel" temporary;        TempCRMTransactioncurrency: Record "CRM Transactioncurrency" temporary;        TempCRMUom: Record "CRM Uom" temporary;        TempCRMUomschedule: Record "CRM Uomschedule" temporary;        CRMProductName: Codeunit "CRM Product Name";        CRMBaseCurrencyNotFoundInNAVErr: Label 'The currency with the ISO code ''%1'' cannot be found. Therefore, the exchange rate between ''%2'' and ''%3'' cannot be calculated.', Comment = '%1,%2,%3=the ISO code of a currency (example: DKK);';        DynamicsCRMTransactionCurrencyRecordNotFoundErr: Label 'Cannot find the currency with the value ''%1'' in Dataverse.', Comment = '%1=the currency code';

All 2,194 lines

Events 18 in 29

[IntegrationEvent] OnAfterGetFieldRelation(RecRef: RecordRef; FldRef: FieldRef; var TableID: Integer)17-29
[IntegrationEvent] OnGetCDSBaseCurrencyId(var BaseCurrencyId: Guid; var handled: Boolean)17-29
[IntegrationEvent] OnGetCDSOwnershipModel(var OwnershipModel: Option; var handled: Boolean)17-29
[IntegrationEvent] OnGetCDSBaseCurrencySymbol(var BaseCurrencySymbol: Text[5]; var handled: Boolean)17-29
[IntegrationEvent] OnGetCDSBaseCurrencyPrecision(var BaseCurrencyPrecision: Integer; var handled: Boolean)17-29
[IntegrationEvent] OnGetCDSCurrencyDecimalPrecision(var CurrencyDecimalPrecision: Integer; var handled: Boolean)17-29
[IntegrationEvent] OnGetVendorSyncEnabled(var Enabled: Boolean)17-29

All 19 events in 17-29

Public procedures 64 in 29

ClearCache()17-29
GetDefaultPriceListName(): Text[100]17-29
CreateCRMPricelevelInCurrency(var CRMPricelevel: Record "CRM Pricelevel"; CurrencyCode: Code[10]; NewExchangeRate: Decimal)17-29
CreateCRMProductpriceIfAbsent(CRMInvoicedetail: Record "CRM Invoicedetail")17-29
FindCRMDefaultPriceList(var CRMPricelevel: Record "CRM Pricelevel")17-29
FindCRMPriceListByCurrencyCode(var CRMPricelevel: Record "CRM Pricelevel"; CurrencyCode: Code[10]): Boolean17-29

All 74 procedures in 17-29

Changes 1 in 27

List17181920212223242526272829
Procedures452562
Events27211
[IntegrationEvent] OnFailedFindContactByAccountId(DestinationContactRecordRef: RecordRef; var CompanyContact: Record Contact; AccountID: Guid; var OutOfMapFilter: Boolean; var Result: Boolean)new in 27
added

All 37 changes in 17-29