Codeunit 6188 E-Document Emailing

E-Document Core, Microsoft.eServices.EDocument

Source AL, 184 lines

src/Apps/W1/EDocument/App/src/Processing/EDocumentEmailing.Codeunit.allines 15 to 30 of 184, Copyright (c) Microsoft Corporation. MIT

codeunit 6188 "E-Document Emailing"{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    var        GlobalTempBlobList: Codeunit "Temp Blob List";        GlobalExtensionList: List of [Text];        EDocumentAttachmentNameTok: Label '%1 %2', Locked = true, Comment = '%1 = Attachment name, %2 = File format';        PDFFileTypeTok: Label '.pdf', Locked = true;        ZipFileTypeTok: Label '.zip', Locked = true;        FileNoTok: Label '_%1', Locked = true;    /// <summary>    /// Sends an e-mail with attached e-document if it exists for the specified posted sales document. 

All 184 lines

Public procedures 2 in 29

SendEDocumentEmail(DocumentSendingProfile: Record "Document Sending Profile"; ReportUsage: Enum "Report Selection Usage"; RecordVariant: Variant; DocNo: Code[20]; DocName: Text[150]; ToCust: Code[20]; ShowDialog: Boolean)new in 27
SetAttachments(Attachments: Codeunit "Temp Blob List"; ExtensionList: List of [Text])new in 27