Codeunit 5348 CRM Quote to Sales Quote

Base Application, Microsoft.Integration.D365Sales

src/Layers/W1/BaseApp/Integration/D365Sales/CRMQuotetoSalesQuote.Codeunit.al25 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 22, trigger

  1. 29callsCodeunit 7200 CDS Integration Mgt. GetCDSCompany
  2. 33callsProcessInNAV

ApplyQuoteDiscounts line 71, local

  1. 80callsCodeunit 5344 CRM Product Name CDSServiceName
  2. 85callsCodeunit 56 Sales - Calc Discount By Type ApplyInvDiscBasedOnAmt
  3. 91callsHideQuoteDiscountsDialog
  4. 92callsCodeunit 5344 CRM Product Name CDSServiceName
  5. 95callsCodeunit 5344 CRM Product Name CDSServiceName

HideQuoteDiscountsDialog line 98, local

  1. 100raisesOnHideQuoteDiscountsDialog

ProcessInNAV line 103

  1. 107callsTable 5330 CRM Connection Setup IsEnabled
  2. 108callsCodeunit 5344 CRM Product Name SHORT
  3. 113callsProcessActiveQuote
  4. 115callsProcessWonQuote

ProcessActiveQuote line 118, local

  1. 125callsTable 5331 CRM Integration Record FindRecordIDFromID
  2. 129callsCreateOrUpdateNAVQuote
  3. 137callsTable 5331 CRM Integration Record FindRecordIDFromID
  4. 138callsGetSalesHeaderByRecordId
  5. 140writesTable 5331 CRM Integration Record Delete(true)
  6. 141callsCreateOrUpdateNAVQuote
  7. 145callsCreateOrUpdateNAVQuote

ProcessWonQuote line 148, local

  1. 166callsCreateOrUpdateNAVQuote
  2. 176callsTable 5331 CRM Integration Record FindByCRMID
  3. 182runsCodeunit 5343 CRM Sales Order to Sales Order
  4. 185raisesOnBeforeFindOrderSalesHeader
  5. 201writesTable 36 Sales Header Modify
  6. 204callsCodeunit 5063 ArchiveManagement ArchSalesDocumentNoConfirm
  7. 205raisesOnAfterArchSalesDocumentNoConfirm
  8. 208writesTable 36 Sales Header Modify
  9. 213validatesTable 5331 CRM Integration Record CRM ID
  10. 214validatesTable 5331 CRM Integration Record Integration ID
  11. 215writesTable 5331 CRM Integration Record Insert(true)

CreateOrUpdateNAVQuote line 222, local

  1. 230callsManageSalesQuoteArchive
  2. 232callsCreateOrUpdateSalesQuoteHeader
  3. 233callsCreateOrUpdateSalesQuoteLines
  4. 234callsCreateOrUpdateSalesQuoteNotes
  5. 235callsApplyQuoteDiscounts
  6. 236callsTable 5331 CRM Integration Record CoupleRecordIdToCRMID
  7. 237raisesOnCreateOrUpdateNAVQuoteOnAfterCoupleRecordIdToCRMID
  8. 239callsCodeunit 5344 CRM Product Name CDSServiceName

CreateOrUpdateSalesQuoteHeader line 243, local

  1. 254validatesTable 36 Sales Header Document Type
  2. 255validatesTable 36 Sales Header Status
  3. 256callsTable 36 Sales Header InitInsert
  4. 259validatesTable 36 Sales Header Status
  5. 261callsGetCoupledCustomer
  6. 262validatesTable 36 Sales Header Sell-to Customer No.
  7. 263validatesTable 36 Sales Header Your Reference
  8. 264validatesTable 36 Sales Header Currency Code
  9. 264callsCodeunit 5342 CRM Synch. Helper GetNavCurrencyCode
  10. 265validatesTable 36 Sales Header Requested Delivery Date
  11. 266callsCopyBillToInformationIfNotEmpty
  12. 267callsCopyShipToInformationIfNotEmpty
  13. 268callsCopyCRMOptionFields
  14. 269validatesTable 36 Sales Header External Document No.
  15. 270validatesTable 36 Sales Header Quote Valid Until Date
  16. 275callsCodeunit 5336 Integration Record Synch. SetTextValue
  17. 275callsCodeunit 5336 Integration Record Synch. GetTextValue
  18. 278raisesOnCreateOrUpdateSalesQuoteHeaderOnBeforeInsertOrModify
  19. 280writesTable 36 Sales Header Insert(true)
  20. 282writesTable 36 Sales Header Modify(true)

CreateOrUpdateSalesQuoteNotes line 285, local

  1. 293callsCreateNote

CreateOrUpdateSalesQuoteLines line 297, local

  1. 309callsInitializeSalesQuoteLine
  2. 310writesTable 37 Sales Line Insert(true)
  3. 312validatesTable 37 Sales Line Qty. to Assemble to Order
  4. 315validatesTable 37 Sales Line Document Type
  5. 316validatesTable 37 Sales Line Document No.
  6. 319callsTable 37 Sales Line InsertFreightLine

GetCoupledCustomer line 322

  1. 331raisesOnBeforeGetCoupledCustomerIsHandled
  2. 336callsCodeunit 5344 CRM Product Name CDSServiceName
  3. 339callsGetCRMAccountOfCRMQuote
  4. 340callsCodeunit 5344 CRM Product Name CDSServiceName
  5. 343callsTable 5331 CRM Integration Record FindRecordIDFromID
  6. 344callsCodeunit 5344 CRM Product Name CDSServiceName

GetCRMAccountOfCRMQuote line 349

  1. 355raisesOnBeforeGetCRMAccountOfCRMQuoteIsHandled
  2. 362callsCodeunit 5344 CRM Product Name CDSServiceName
  3. 363callsCodeunit 5344 CRM Product Name CDSServiceName

CopyCRMOptionFields line 373, local

  1. 378callsTable 5334 CRM Option Mapping FindRecordID
  2. 381validatesTable 36 Sales Header Shipping Agent Code
  3. 383callsTable 5334 CRM Option Mapping GetRecordKeyValue
  4. 385callsTable 5334 CRM Option Mapping FindRecordID
  5. 388validatesTable 36 Sales Header Payment Terms Code
  6. 390callsTable 5334 CRM Option Mapping GetRecordKeyValue
  7. 392callsTable 5334 CRM Option Mapping FindRecordID
  8. 395validatesTable 36 Sales Header Shipment Method Code
  9. 397callsTable 5334 CRM Option Mapping GetRecordKeyValue

CopyBillToInformationIfNotEmpty line 400, local

  1. 412validatesTable 36 Sales Header Bill-to Address
  2. 413validatesTable 36 Sales Header Bill-to Address 2
  3. 414validatesTable 36 Sales Header Bill-to City
  4. 415validatesTable 36 Sales Header Bill-to Post Code
  5. 416validatesTable 36 Sales Header Bill-to Country/Region Code
  6. 418validatesTable 36 Sales Header Bill-to County

InitNewSalesLine line 421, local

  1. 424validatesTable 37 Sales Line Document Type
  2. 425validatesTable 37 Sales Line Document No.
  3. 427validatesTable 37 Sales Line Line No.

InitializeWriteInQuoteLine line 430, local

  1. 436callsCodeunit 5344 CRM Product Name CDSServiceName
  2. 437callsCodeunit 5344 CRM Product Name CDSServiceName
  3. 437callsTable 37 Sales Line GetSalesHeader
  4. 439validatesTable 311 Sales & Receivables Setup Write-in Product No.
  5. 442validatesTable 37 Sales Line Type
  6. 444validatesTable 37 Sales Line Type
  7. 446validatesTable 37 Sales Line No.

InitializeSalesQuoteLineFromItem line 449, local

  1. 456callsTable 5331 CRM Integration Record FindRecordIDFromID
  2. 457callsCodeunit 5344 CRM Product Name CDSServiceName
  3. 461validatesTable 37 Sales Line Type
  4. 462validatesTable 37 Sales Line No.

InitializeSalesQuoteLineFromResource line 465, local

  1. 472callsTable 5331 CRM Integration Record FindRecordIDFromID
  2. 473callsCodeunit 5344 CRM Product Name CDSServiceName
  3. 477validatesTable 37 Sales Line Type
  4. 478validatesTable 37 Sales Line No.

InitializeSalesQuoteLine line 481, local

  1. 486callsInitNewSalesLine
  2. 489callsInitializeWriteInQuoteLine
  3. 495callsInitializeSalesQuoteLineFromItem
  4. 497callsInitializeSalesQuoteLineFromResource
  5. 502callsSetLineDescription
  6. 504callsCodeunit 5330 CRM Integration Management IsUnitGroupMappingEnabled
  7. 505callsUpdateSalesLineUnitOfMeasure
  8. 507validatesTable 37 Sales Line Quantity
  9. 508validatesTable 37 Sales Line Unit Price
  10. 509validatesTable 37 Sales Line Amount
  11. 510validatesTable 37 Sales Line Line Discount Amount
  12. 515raisesOnAfterInitializeSalesQuoteLine

UpdateSalesLineUnitOfMeasure line 518, local

  1. 532callsTable 5331 CRM Integration Record FindRecordIDFromID
  2. 533callsCodeunit 5344 CRM Product Name CDSServiceName
  3. 538validatesTable 37 Sales Line Unit of Measure Code
  4. 542callsTable 5331 CRM Integration Record FindRecordIDFromID
  5. 543callsCodeunit 5344 CRM Product Name CDSServiceName
  6. 548validatesTable 37 Sales Line Unit of Measure Code

CopyShipToInformationIfNotEmpty line 553, local

  1. 565validatesTable 36 Sales Header Ship-to Address
  2. 566validatesTable 36 Sales Header Ship-to Address 2
  3. 567validatesTable 36 Sales Header Ship-to City
  4. 568validatesTable 36 Sales Header Ship-to Post Code
  5. 569validatesTable 36 Sales Header Ship-to Country/Region Code
  6. 571validatesTable 36 Sales Header Ship-to County
  7. 572raisesOnAfterCopyShipToInformationIfNotEmpty

CreateNote line 575, local

  1. 591callsCodeunit 447 Record Link Management WriteNote
  2. 591callsTable 5392 CRM Annotation Coupling ExtractNoteText
  3. 594writesTable 2000000068 Record Link Insert(true)

SetLineDescription line 597, local

  1. 622callsCreateExtendedDescriptionQuoteLines
  2. 627callsCreateExtendedDescriptionQuoteLines

CreateExtendedDescriptionQuoteLines line 631

  1. 636callsInitNewSalesLine
  2. 638validatesTable 37 Sales Line Description
  3. 640writesTable 37 Sales Line Insert

ManageSalesQuoteArchive line 646

  1. 652callsCodeunit 5063 ArchiveManagement ArchSalesDocumentNoConfirm
  2. 655writesTable 37 Sales Line DeleteAll
  3. 658writesTable 2000000068 Record Link DeleteAll
  4. 661writesTable 36 Sales Header Modify