Codeunit 1637 Office Document Handler

Base Application, Microsoft.CRM.Outlook

Source AL, 572 lines

src/Layers/W1/BaseApp/CRM/Outlook/OfficeDocumentHandler.Codeunit.allines 19 to 34 of 572, Copyright (c) Microsoft Corporation. MIT

codeunit 1637 "Office Document Handler"{    TableNo = "Office Add-in Context";    trigger OnRun()    begin        RedirectToDocument(Rec);    end;    var        DocDoesNotExistMsg: Label 'Cannot find a document with the number %1.', Comment = '%1=The document number the hyperlink is attempting to open.';        SuggestedItemsDisabledTxt: Label 'The suggested line items page has been disabled by the user.', Locked = true;        DocumentMatchedTelemetryTxt: Label 'Outlook Document View loaded%1  Documents matched: %2%1  Document Series: %3%1  Document Type: %4', Locked = true;        CreateSalesDocTelemetryTxt: Label 'Creating Sales %1 from Outlook add-in.', Locked = true;        CreatePurchDocTelemetryTxt: Label 'Creating Purchase %1 from Outlook add-in.', Locked = true;

All 572 lines

Events 4 in 29

[IntegrationEvent] OnCloseSuggestedLineItemsPage(var TempOfficeSuggestedLineItem: Record "Office Suggested Line Item" temporary; var HeaderRecRef: RecordRef; PageCloseAction: Action)17-29
[IntegrationEvent] OnGenerateLinesFromText(var HeaderRecRef: RecordRef; var TempOfficeSuggestedLineItem: Record "Office Suggested Line Item" temporary; EmailBody: Text)17-29
[IntegrationEvent] OnOpenIndividualSalesDocumentOnBeforeOpenPage(var TempOfficeDocumentSelection: Record "Office Document Selection" temporary; var TempOfficeAddinContext: Record "Office Add-in Context" temporary; var IsHandled: Boolean)new in 21
[IntegrationEvent] OnOpenIndividualPurchaseDocumentOnBeforeOpenPage(var TempOfficeDocumentSelection: Record "Office Document Selection" temporary; var TempOfficeAddinContext: Record "Office Add-in Context" temporary; var IsHandled: Boolean)new in 21

Public procedures 5 in 29

RedirectToDocument(TempOfficeAddinContext: Record "Office Add-in Context" temporary)17-29
ShowDocumentSelection(DocSeries: Integer; DocType: Integer)17-29
HandleSalesCommand(Customer: Record Customer; TempOfficeAddinContext: Record "Office Add-in Context" temporary)17-29
HandlePurchaseCommand(Vendor: Record Vendor; TempOfficeAddinContext: Record "Office Add-in Context" temporary)17-29
OpenIndividualDocument(TempOfficeAddinContext: Record "Office Add-in Context" temporary; TempOfficeDocumentSelection: Record "Office Document Selection" temporary)17-29

Changes 2 in 21

List17181920212223242526272829
Events2
[IntegrationEvent] OnOpenIndividualSalesDocumentOnBeforeOpenPage(var TempOfficeDocumentSelection: Record "Office Document Selection" temporary; var TempOfficeAddinContext: Record "Office Add-in Context" temporary; var IsHandled: Boolean)new in 21
added
[IntegrationEvent] OnOpenIndividualPurchaseDocumentOnBeforeOpenPage(var TempOfficeDocumentSelection: Record "Office Document Selection" temporary; var TempOfficeAddinContext: Record "Office Add-in Context" temporary; var IsHandled: Boolean)new in 21
added

All 2 changes in 17-29