Codeunit 1637 Office Document Handler

Base Application, Microsoft.CRM.Outlook

src/Layers/W1/BaseApp/CRM/Outlook/OfficeDocumentHandler.Codeunit.al28 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 23, trigger

  1. 25callsRedirectToDocument

RedirectToDocument line 35

  1. 48callsCollectDocumentMatches
  2. 52callsCodeunit 10 Type Helper NewLine
  3. 55callsCodeunit 1630 Office Management GetOfficeAddinTelemetryCategory
  4. 61runsPage 1606 Office Doc Selection Dlg
  5. 64callsOpenIndividualDocument
  6. 66runsPage 1602 Office Document Selection

ShowDocumentSelection line 70

  1. 76callsGetSalesDocuments
  2. 78callsGetPurchaseDocuments
  3. 80runsPage 1602 Office Document Selection

HandleSalesCommand line 83

  1. 90callsTable 18 Customer CreateAndShowNewCreditMemo
  2. 92callsCodeunit 1630 Office Management CheckForExistingInvoice
  3. 93callsTable 18 Customer CreateAndShowNewInvoice
  4. 95callsTable 18 Customer CreateAndShowNewQuote
  5. 97callsTable 18 Customer CreateAndShowNewOrder

HandlePurchaseCommand line 101

  1. 107callsTable 23 Vendor CreateAndShowNewCreditMemo
  2. 109callsTable 23 Vendor CreateAndShowNewInvoice
  3. 111callsTable 23 Vendor CreateAndShowNewPurchaseOrder

OpenIndividualDocument line 115

  1. 119callsOpenIndividualSalesDocument
  2. 121callsOpenIndividualPurchaseDocument

CollectDocumentMatches line 125, local

  1. 134callsExpressionContainsSeriesTitle
  2. 136callsExpressionContainsKeyWords
  3. 142callsSetSalesDocumentMatchRecord
  4. 143callsSetSalesDocumentMatchRecord
  5. 144callsSetSalesDocumentMatchRecord
  6. 145callsSetSalesDocumentMatchRecord
  7. 147callsSetPurchDocumentMatchRecord
  8. 148callsSetPurchDocumentMatchRecord
  9. 149callsSetPurchDocumentMatchRecord

CreateDocumentMatchRecord line 154, local

  1. 157validatesTable 1620 Office Document Selection Document No.
  2. 158validatesTable 1620 Office Document Selection Document Date
  3. 159validatesTable 1620 Office Document Selection Document Type
  4. 160validatesTable 1620 Office Document Selection Series
  5. 161validatesTable 1620 Office Document Selection Posted
  6. 162writesTable 1620 Office Document Selection Insert

ExpressionContainsKeyWords line 170, local

  1. 176callsGetDocumentNumber
  2. 177callsSetSalesDocumentMatchRecord
  3. 178callsGetDocumentNumber
  4. 180callsSetSalesDocumentMatchRecord
  5. 181callsSetPurchDocumentMatchRecord
  6. 183callsGetDocumentNumber
  7. 185callsSetSalesDocumentMatchRecord
  8. 186callsSetPurchDocumentMatchRecord
  9. 188callsGetDocumentNumber
  10. 190callsSetSalesDocumentMatchRecord
  11. 191callsSetPurchDocumentMatchRecord
  12. 193callsGetDocumentNumber
  13. 193callsCodeunit 1643 Hyperlink Manifest GetAcronymForPurchaseOrder
  14. 194callsSetPurchDocumentMatchRecord

ExpressionContainsSeriesTitle line 201, local

  1. 206callsGetDocumentNumber
  2. 206callsCodeunit 1643 Hyperlink Manifest GetNameForPurchaseCrMemo
  3. 207callsSetPurchDocumentMatchRecord
  4. 208callsGetDocumentNumber
  5. 208callsCodeunit 1643 Hyperlink Manifest GetNameForPurchaseInvoice
  6. 209callsSetPurchDocumentMatchRecord
  7. 210callsGetDocumentNumber
  8. 210callsCodeunit 1643 Hyperlink Manifest GetNameForPurchaseOrder
  9. 211callsSetPurchDocumentMatchRecord
  10. 212callsGetDocumentNumber
  11. 212callsCodeunit 1643 Hyperlink Manifest GetNameForSalesCrMemo
  12. 213callsSetSalesDocumentMatchRecord
  13. 214callsGetDocumentNumber
  14. 214callsCodeunit 1643 Hyperlink Manifest GetNameForSalesInvoice
  15. 215callsSetSalesDocumentMatchRecord
  16. 216callsGetDocumentNumber
  17. 216callsCodeunit 1643 Hyperlink Manifest GetNameForSalesOrder
  18. 217callsSetSalesDocumentMatchRecord
  19. 218callsGetDocumentNumber
  20. 218callsCodeunit 1643 Hyperlink Manifest GetNameForSalesQuote
  21. 219callsSetSalesDocumentMatchRecord

GetDocumentNumber line 226, local

  1. 231callsCodeunit 1643 Hyperlink Manifest GetNumberSeriesRegex

GetSalesDocuments line 237, local

  1. 247callsCreateDocumentMatchRecord
  2. 255callsCreateDocumentMatchRecord
  3. 263callsCreateDocumentMatchRecord

GetPurchaseDocuments line 268, local

  1. 278callsCreateDocumentMatchRecord
  2. 286callsCreateDocumentMatchRecord
  3. 294callsCreateDocumentMatchRecord

OpenIndividualSalesDocument line 299, local

  1. 308raisesOnOpenIndividualSalesDocumentOnBeforeOpenPageIsHandled
  2. 314callsCodeunit 700 Page Management PageRun
  3. 317callsDocumentDoesNotExist
  4. 321callsCodeunit 700 Page Management PageRun
  5. 324callsCodeunit 700 Page Management PageRun

OpenIndividualPurchaseDocument line 328, local

  1. 336raisesOnOpenIndividualPurchaseDocumentOnBeforeOpenPageIsHandled
  2. 344runsPage 51 Purchase Invoice
  3. 346runsPage 52 Purchase Credit Memo
  4. 348runsPage 50 Purchase Order
  5. 351callsDocumentDoesNotExist
  6. 355runsPage 138 Posted Purchase Invoice
  7. 358runsPage 140 Posted Purchase Credit Memo

SetSalesDocumentMatchRecord line 362, local

  1. 369callsCreateDocumentMatchRecord
  2. 371callsCreateDocumentMatchRecord
  3. 373callsCreateDocumentMatchRecord

SetPurchDocumentMatchRecord line 376, local

  1. 383callsCreateDocumentMatchRecord
  2. 385callsCreateDocumentMatchRecord
  3. 387callsCreateDocumentMatchRecord

OnNewInvoice line 391, local

  1. 399callsCodeunit 1630 Office Management IsAvailable
  2. 400callsCodeunit 1630 Office Management GetContext
  3. 401callsTable 1600 Office Add-in Context IsAppointment
  4. 402callsCreateOfficeInvoiceRecord

OnPostInvoice line 407, local

  1. 415callsCodeunit 1630 Office Management IsAvailable
  2. 416callsCodeunit 1630 Office Management GetContext
  3. 417callsTable 1600 Office Add-in Context IsAppointment
  4. 418callsCreateOfficeInvoiceRecord

OnDeleteInvoice line 423, local

  1. 429callsCodeunit 1630 Office Management IsAvailable
  2. 431callsCodeunit 1630 Office Management GetContext
  3. 432callsTable 1600 Office Add-in Context IsAppointment
  4. 434writesTable 1606 Office Invoice Delete

CreateOfficeInvoiceRecord line 437, local

  1. 448writesTable 1606 Office Invoice Insert
  2. 449writesTable 1606 Office Invoice Modify

DisableSuggestedLinesOnDisableMessage line 453, local

  1. 458callsCodeunit 1330 Instruction Mgt. DisableMessageForCurrentUser
  2. 458callsCodeunit 1330 Instruction Mgt. AutomaticLineItemsDialogCode
  3. 459callsCodeunit 1630 Office Management GetOfficeAddinTelemetryCategory

GenerateLinesOnAfterInsertPurchaseHeader line 463, local

  1. 471callsCodeunit 1630 Office Management IsAvailable
  2. 474callsCodeunit 1630 Office Management GetOfficeAddinTelemetryCategory
  3. 477callsGenerateLinesForDocument

GenerateLinesOnAfterInsertSalesHeader line 481, local

  1. 489callsCodeunit 1630 Office Management IsAvailable
  2. 492callsCodeunit 1630 Office Management GetOfficeAddinTelemetryCategory
  3. 499callsGenerateLinesForDocument

UnlinkOfficeDocumentOnAfterDeleteSalesHeader line 503, local

  1. 509callsTable 1606 Office Invoice UnlinkDocument

UnlinkOfficeDocumentOnAfterDeletePurchaseHeader line 513, local

  1. 519callsTable 1606 Office Invoice UnlinkDocument

GenerateLinesForDocument line 522, local

  1. 530callsCodeunit 1330 Instruction Mgt. IsEnabled
  2. 530callsCodeunit 1330 Instruction Mgt. AutomaticLineItemsDialogCode
  3. 531callsCodeunit 1630 Office Management GetContext
  4. 532callsCodeunit 1630 Office Management GetEmailBody
  5. 533raisesOnGenerateLinesFromText
  6. 536callsConvertSuggestedLinesToDocumentLines

ConvertSuggestedLinesToDocumentLines line 540, local

  1. 547runsPage 1637 Office Suggested Line Items
  2. 548raisesOnCloseSuggestedLineItemsPage