Codeunit 6112 Customer Data Migration Facade

Base Application, System.Integration

src/Layers/W1/BaseApp/System/DataMigration/CustomerDataMigrationFacade.Codeunit.al70 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 12, trigger

  1. 17callsCodeunit 6101 Data Migration Status Facade HasMigratedChartOfAccounts
  2. 20raisesOnMigrateCustomer
  3. 21raisesOnMigrateCustomerDimensions
  4. 24raisesOnMigrateCustomerPostingGroups
  5. 25raisesOnMigrateCustomerTransactions

CreateCustomerIfNeeded line 52

  1. 64validatesTable 18 Customer No.
  2. 65validatesTable 18 Customer Name
  3. 67writesTable 18 Customer Insert(true)

CreatePostingSetupIfNeeded line 74

  1. 80validatesTable 92 Customer Posting Group Code
  2. 81validatesTable 92 Customer Posting Group Description
  3. 82validatesTable 92 Customer Posting Group Receivables Account
  4. 83writesTable 92 Customer Posting Group Insert(true)
  5. 86validatesTable 92 Customer Posting Group Receivables Account
  6. 87writesTable 92 Customer Posting Group Modify(true)

CreateGeneralJournalBatchIfNeeded line 91

  1. 93callsCodeunit 1797 Data Migration Facade Helper CreateGeneralJournalBatchIfNeeded

CreateGeneralJournalLine line 96

  1. 98callsCodeunit 1797 Data Migration Facade Helper CreateGeneralJournalLine

SetGeneralJournalLineDimension line 113

  1. 120validatesTable 81 Gen. Journal Line Dimension Set ID
  2. 121callsCodeunit 1797 Data Migration Facade Helper CreateDimensionSetId
  3. 124writesTable 81 Gen. Journal Line Modify(true)

SetGeneralJournalLineDocumentType line 127

  1. 132validatesTable 81 Gen. Journal Line Document Type
  2. 133writesTable 81 Gen. Journal Line Modify(true)

SetGeneralJournalLineSourceCode line 136

  1. 141validatesTable 81 Gen. Journal Line Source Code
  2. 142writesTable 81 Gen. Journal Line Modify(true)

SetGeneralJournalLineExternalDocumentNo line 145

  1. 150validatesTable 81 Gen. Journal Line External Document No.
  2. 151writesTable 81 Gen. Journal Line Modify(true)

SetGeneralJournalLineSalesPersonCode line 154

  1. 159validatesTable 81 Gen. Journal Line Salespers./Purch. Code
  2. 160writesTable 81 Gen. Journal Line Modify(true)

SetGeneralJournalLinePaymentTerms line 163

  1. 168validatesTable 81 Gen. Journal Line Payment Terms Code
  2. 169writesTable 81 Gen. Journal Line Modify(true)

ModifyCustomer line 178

  1. 183writesTable 18 Customer Modify

SetSearchName line 186

  1. 191validatesTable 18 Customer Search Name

SetAddress line 201

  1. 206validatesTable 18 Customer Address
  2. 207validatesTable 18 Customer Address 2
  3. 208validatesTable 18 Customer Country/Region Code
  4. 209validatesTable 18 Customer Post Code
  5. 210validatesTable 18 Customer City

SetPhoneNo line 213

  1. 218validatesTable 18 Customer Phone No.

SetTelexNo line 221

  1. 226validatesTable 18 Customer Telex No.

SetCreditLimitLCY line 229

  1. 234validatesTable 18 Customer Credit Limit (LCY)

SetCurrencyCode line 237

  1. 242validatesTable 18 Customer Currency Code
  2. 242callsCodeunit 1797 Data Migration Facade Helper FixIfLcyCode

SetCustomerPriceGroup line 245

  1. 250validatesTable 18 Customer Customer Price Group

SetGenBusPostingGroup line 253

  1. 258validatesTable 18 Customer Gen. Bus. Posting Group

SetLanguageCode line 261

  1. 266validatesTable 18 Customer Language Code

SetShipmentMethodCode line 269

  1. 274validatesTable 18 Customer Shipment Method Code

SetPaymentTermsCode line 277

  1. 282validatesTable 18 Customer Payment Terms Code

SetSalesPersonCode line 285

  1. 290validatesTable 18 Customer Salesperson Code

SetInvoiceDiscCode line 293

  1. 298validatesTable 18 Customer Invoice Disc. Code

SetBlocked line 301

  1. 306validatesTable 18 Customer Blocked

SetFaxNo line 309

  1. 314validatesTable 18 Customer Fax No.

SetVATRegistrationNo line 317

  1. 322validatesTable 18 Customer VAT Registration No.

SetHomePage line 325

  1. 330validatesTable 18 Customer Home Page

SetBillToCustomerNo line 333

  1. 338validatesTable 18 Customer Bill-to Customer No.

SetPaymentMethodCode line 341

  1. 346validatesTable 18 Customer Payment Method Code

SetContact line 349

  1. 354validatesTable 18 Customer Contact

SetLastDateModified line 357

  1. 362validatesTable 18 Customer Last Date Modified

SetLastModifiedDateTime line 365

  1. 370validatesTable 18 Customer Last Modified Date Time

SetTaxLiable line 373

  1. 378validatesTable 18 Customer Tax Liable

SetTaxAreaCode line 381

  1. 386validatesTable 18 Customer Tax Area Code

SetEmail line 389

  1. 394validatesTable 18 Customer E-Mail

SetName2 line 397

  1. 402validatesTable 18 Customer Name 2

SetTerritoryCode line 405

  1. 410validatesTable 18 Customer Territory Code

SetPrintStatement line 413

  1. 418validatesTable 18 Customer Print Statements

CreateDefaultDimensionAndRequirementsIfNeeded line 421

  1. 429callsCodeunit 1797 Data Migration Facade Helper GetOrCreateDimension
  2. 430callsCodeunit 1797 Data Migration Facade Helper GetOrCreateDimensionValue
  3. 432callsCodeunit 1797 Data Migration Facade Helper CreateOnlyDefaultDimensionIfNeeded

CreateCustomerDiscountGroupIfNeeded line 436

  1. 444validatesTable 340 Customer Discount Group Code
  2. 445validatesTable 340 Customer Discount Group Description
  3. 446writesTable 340 Customer Discount Group Insert(true)

CreateShipmentMethodIfNeeded line 450

  1. 452callsCodeunit 1797 Data Migration Facade Helper CreateShipmentMethodIfNeeded

CreateSalespersonPurchaserIfNeeded line 455

  1. 457callsCodeunit 1797 Data Migration Facade Helper CreateSalespersonPurchaserIfNeeded

CreateCustomerPriceGroupIfNeeded line 460

  1. 462callsCodeunit 1797 Data Migration Facade Helper CreateCustomerPriceGroupIfNeeded

CreatePaymentTermsIfNeeded line 465

  1. 467callsCodeunit 1797 Data Migration Facade Helper CreatePaymentTermsIfNeeded

CreatePaymentMethodIfNeeded line 470

  1. 472callsCodeunit 1797 Data Migration Facade Helper CreatePaymentMethodIfNeeded

CreateTerritoryCodeIfNeeded line 475

  1. 477callsCodeunit 1797 Data Migration Facade Helper CreateTerritoryIfNeeded

CreateTaxAreaIfNeeded line 480

  1. 482callsCodeunit 1797 Data Migration Facade Helper CreateTaxAreaIfNeeded

DoesPostCodeExist line 485

  1. 487callsCodeunit 1797 Data Migration Facade Helper DoesPostCodeExist

CreatePostCodeIfNeeded line 490

  1. 492callsCodeunit 1797 Data Migration Facade Helper CreatePostCodeIfNeeded

CreateCountryIfNeeded line 495

  1. 497callsCodeunit 1797 Data Migration Facade Helper CreateCountryIfNeeded

SearchCountry line 500

  1. 503callsCodeunit 1797 Data Migration Facade Helper SearchCountry

SearchLanguage line 506

  1. 508callsCodeunit 1797 Data Migration Facade Helper SearchLanguage

SetCustomerPostingGroup line 511

  1. 521validatesTable 18 Customer Customer Posting Group

SetCustomerPostingGroupAccounts line 536

  1. 543validatesTable 92 Customer Posting Group Receivables Account
  2. 544validatesTable 92 Customer Posting Group Service Charge Acc.
  3. 545validatesTable 92 Customer Posting Group Payment Disc. Debit Acc.
  4. 546validatesTable 92 Customer Posting Group Invoice Rounding Account
  5. 547validatesTable 92 Customer Posting Group Additional Fee Account
  6. 548validatesTable 92 Customer Posting Group Interest Account
  7. 549validatesTable 92 Customer Posting Group Debit Curr. Appln. Rndg. Acc.
  8. 550validatesTable 92 Customer Posting Group Credit Curr. Appln. Rndg. Acc.
  9. 551validatesTable 92 Customer Posting Group Debit Rounding Account
  10. 552validatesTable 92 Customer Posting Group Credit Rounding Account
  11. 553validatesTable 92 Customer Posting Group Payment Disc. Credit Acc.
  12. 554validatesTable 92 Customer Posting Group Payment Tolerance Debit Acc.
  13. 555validatesTable 92 Customer Posting Group Payment Tolerance Credit Acc.
  14. 556validatesTable 92 Customer Posting Group Add. Fee per Line Account
  15. 557writesTable 92 Customer Posting Group Modify(true)

SetCustomerPostingGroupServiceChargeAcc line 560

  1. 567validatesTable 92 Customer Posting Group Service Charge Acc.
  2. 568writesTable 92 Customer Posting Group Modify(true)

SetCustomerPostingGroupPaymentDiscDebitAcc line 571

  1. 578validatesTable 92 Customer Posting Group Payment Disc. Debit Acc.
  2. 579writesTable 92 Customer Posting Group Modify(true)

SetCustomerPostingGroupInvoiceRoundingAccount line 582

  1. 589validatesTable 92 Customer Posting Group Invoice Rounding Account
  2. 590writesTable 92 Customer Posting Group Modify(true)

SetCustomerPostingGroupAdditionalFeeAccount line 593

  1. 600validatesTable 92 Customer Posting Group Additional Fee Account
  2. 601writesTable 92 Customer Posting Group Modify(true)

SetCustomerPostingGroupInterestAccount line 604

  1. 611validatesTable 92 Customer Posting Group Interest Account
  2. 612writesTable 92 Customer Posting Group Modify(true)

SetCustomerPostingGroupDebitCurrApplnRndgAcc line 615

  1. 622validatesTable 92 Customer Posting Group Debit Curr. Appln. Rndg. Acc.
  2. 623writesTable 92 Customer Posting Group Modify(true)

SetCustomerPostingGroupCreditCurrApplnRndgAcc line 626

  1. 633validatesTable 92 Customer Posting Group Credit Curr. Appln. Rndg. Acc.
  2. 634writesTable 92 Customer Posting Group Modify(true)

SetCustomerPostingGroupDebitRoundingAccount line 637

  1. 644validatesTable 92 Customer Posting Group Debit Rounding Account
  2. 645writesTable 92 Customer Posting Group Modify(true)

SetCustomerPostingGroupCreditRoundingAccount line 648

  1. 655validatesTable 92 Customer Posting Group Credit Rounding Account
  2. 656writesTable 92 Customer Posting Group Modify(true)

SetCustomerPostingGroupPaymentDiscCreditAcc line 659

  1. 666validatesTable 92 Customer Posting Group Payment Disc. Credit Acc.
  2. 667writesTable 92 Customer Posting Group Modify(true)

SetCustomerPostingGroupPaymentToleranceDebitAcc line 670

  1. 677validatesTable 92 Customer Posting Group Payment Tolerance Debit Acc.
  2. 678writesTable 92 Customer Posting Group Modify(true)

SetCustomerPostingGroupPaymentToleranceCreditAcc line 681

  1. 688validatesTable 92 Customer Posting Group Payment Tolerance Credit Acc.
  2. 689writesTable 92 Customer Posting Group Modify(true)

SetCustomerPostingGroupAddFeePerLineAccount line 692

  1. 699validatesTable 92 Customer Posting Group Add. Fee per Line Account
  2. 700writesTable 92 Customer Posting Group Modify(true)

SetCustomerAlternativeContact line 703

  1. 708callsCodeunit 1797 Data Migration Facade Helper SetAlternativeContact