codeunitPlatform, DevOps & Performanceofficial - Microsoftderived - from the source, no model text

Codeunit 260 "Document-Mailing"

Base Application · System.EMail

Across versions

  1. BC23present
  2. BC244 procedures removed, 2 events added
  3. BC251 events added
  4. BC26unchanged
  5. BC2713 procedures added, 9 procedures changed
  6. BC28-30unchanged

Neighbourhood 61 connected objects and pages

Table 472 "Job Queue Entry" (relates to)Job Queue EntryCodeunit 6753 "Send Reminder Event Handler" (event subscribers, 3 links)Send Reminder Event HandlerCodeunit 1890 "Reminder Communication" (event subscribers, 2 links)Reminder CommunicationCodeunit 4100 "Temp Blob" (calls, 3 links)Temp BlobCodeunit 452 "Report Distribution Management" (calls, 3 links)Report Distribution ManagementCodeunit 1630 "Office Management" (calls, 2 links)Codeunit 4102 "Temp Blob List" (calls, 2 links)Temp Blob ListCodeunit 5052 "AttachmentManagement" (calls, 2 links)AttachmentManagementTable 60 "Document Sending Profile" (calls, 2 links)Codeunit 1509 "Notification Entry Dispatcher" (calls)Notification Entry DispatcherCodeunit 20038 "APIV1 - Send Sales Document" (calls)Codeunit 2103 "O365 Sales Cancel Invoice" (calls)O365 Sales Cancel InvoiceCodeunit 30038 "APIV2 - Send Sales Document" (calls)APIV2 - Send Sales DocumentCodeunit 431 "IC Outbox Export" (calls)IC Outbox ExportCodeunit 4999 "Return Shpt. PDF Doc.Handler" (calls)Codeunit 5001 "Bl. S. Order PDF Doc.Handler" (calls)Bl. S. Order PDF Doc.HandlerCodeunit 5002 "Bl. P. Order PDF Doc.Handler" (calls)Codeunit 5003 "S. Ret. Order PDF Doc.Handler" (calls)Codeunit 5004 "Sales Shipment PDF Doc.Handler" (calls)Sales Shipment PDF Doc.HandlerCodeunit 5006 "Purch. Quote PDF Doc.Handler" (calls)Purch. Quote PDF Doc.HandlerCodeunit 5007 "Purch. Rcpt. PDF Doc.Handler" (calls)Codeunit 5008 "Return Receipt PDF Doc.Handler" (calls)Codeunit 5009 "P. Ret. Order PDF Doc.Handler" (calls)Codeunit 5017 "Trans. Order PDF Doc.Handler" (calls)Codeunit 5018 "Trans. Shpt. PDF Doc.Handler" (calls)Codeunit 5019 "Trans. Rcpt. PDF Doc.Handler" (calls)Codeunit 5020 "S.Arch.Quote PDF Doc.Handler" (calls)Codeunit 5021 "S.Arch.Order PDF Doc.Handler" (calls)Codeunit 5022 "P.Arch.Quote PDF Doc.Handler" (calls)Codeunit 5023 "P.Arch.Order PDF Doc.Handler" (calls)Codeunit 5024 "S.Arch.Return PDF Doc.Handler" (calls)Codeunit 5025 "P.Arch.Return PDF Doc.Handler" (calls)Codeunit 5026 "Asm. Order PDF Doc.Handler" (calls)Codeunit 5027 "P.Asm. Order PDF Doc.Handler" (calls)Codeunit 5028 "S.Arch.Bl.Ord PDF Doc.Handler" (calls)Codeunit 5029 "P.Arch.Bl.Ord PDF Doc.Handler" (calls)Codeunit 5030 "Phys.Inv.Ord. PDF Doc.Handler" (calls)Codeunit 5031 "P.Phys.InvOrd PDF Doc.Handler" (calls)Codeunit 5032 "Phys.Inv.Rec. PDF Doc.Handler" (calls)Codeunit 5033 "P.Phys.InvRec PDF Doc.Handler" (calls)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · System.EMail · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
TableNo Job Queue Entry

Events published

  • OnBeforeSendEmail(var TempEmailItem: Record "Email Item" temporary; var IsFromPostedDoc: Boolean; var PostedDocNo: Code[20]; var HideDialog: Boolean; var ReportUsage: Integer; var EmailSentSuccesfully: Boolean; var IsHandled: Boolean; EmailDocName: Text[250]; SenderUserID: Code[50]; EmailScenario: Enum "Email Scenario") (integration)
  • OnAfterEmailSentSuccesfully(var TempEmailItem: Record "Email Item" temporary; PostedDocNo: Code[20]; ReportUsage: Integer) (integration)
  • OnAfterEmailSent(var TempEmailItem: Record "Email Item" temporary; PostedDocNo: Code[20]; ReportUsage: Integer; EmailSentSuccesfully: Boolean) + BC24 (integration)
  • OnBeforeEmailFileInternal(var TempEmailItem: Record "Email Item" temporary; var HtmlBodyFilePath: Text[250]; var EmailSubject: Text[250]; var ToEmailAddress: Text[250]; var PostedDocNo: Code[20]; var EmailDocName: Text[250]; var HideDialog: Boolean; var ReportUsage: Integer; var IsFromPostedDoc: Boolean; var SenderUserID: Code[50]; var EmailScenario: Enum "Email Scenario"; var EmailSentSuccessfully: Boolean; var IsHandled: Boolean) Δ BC27 (integration, obsolete 27.0)
  • OnBeforeEmailItemPreparation(var TempEmailItem: Record "Email Item" temporary; var HtmlBody: Codeunit "Temp Blob"; var EmailSubject: Text[250]; var ToEmailAddress: Text[250]; var PostedDocNo: Code[20]; var EmailDocName: Text[250]; var HideDialog: Boolean; var ReportUsage: Integer; var IsFromPostedDoc: Boolean; var SenderUserID: Code[50]; var EmailScenario: Enum "Email Scenario"; var EmailSentSuccessfully: Boolean; var IsHandled: Boolean) + BC27 (integration)
  • OnBeforeEmailFile(var HideDialog: Boolean) (integration)
  • OnBeforeGetAttachmentFileName(var AttachmentFileName: Text[250]; PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer) (integration)
  • OnBeforeGetEmailSubject(PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer; var EmailSubject: Text[250]; var IsHandled: Boolean) (integration)
  • OnBeforeGetToAddressFromCustomer(BillToCustomerNo: Code[20]; var ToAddress: Text[250]; var IsHandled: Boolean) (integration)
  • OnBeforeGetToAddressFromVendor(BuyFromVendorNo: Code[20]; var ToAddress: Text[250]; var IsHandled: Boolean) (integration)
  • OnAfterGetEmailSubject(PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer; var EmailSubject: Text[250]) + BC24 (integration)
  • OnAfterGetAttachmentFileName(var AttachmentFileName: Text[250]; PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer) + BC25 (integration)

Procedures

  • EnqueueEmailFile(AttachmentInStream: Instream; AttachmentName: Text; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean + BC27 − BC27 (internal)
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; HtmlBodyFilePath: Text; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27 (obsolete 27.0: Use procedure EmailFile that accepts a “Temp Blob” for the html body instead.)
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; HtmlBodyFilePath: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27 (obsolete 27.0: Use procedure EmailFile that accepts a “Temp Blob” for the html body instead.)
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; HtmlBodyFilePath: Text; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"; SourceReference: RecordRef): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27 (obsolete 27.0: Use procedure EmailFile that accepts a “Temp Blob” for the html body instead.)
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"; SourceReference: RecordRef): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; HtmlBodyFilePath: Text; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27 (obsolete 27.0: Use procedure EmailFile that accepts a “Temp Blob” for the html body instead.)
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; HtmlBodyFilePath: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceReference: RecordRef): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27 (obsolete 27.0: Use procedure EmailFile that accepts a “Temp Blob” for the html body instead.)
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceReference: RecordRef): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; HtmlBodyInstream: InStream; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; HtmlBodyFilePath: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27 (obsolete 27.0: Use procedure EmailFile that accepts a “Temp Blob” for the html body instead.)
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; var EmailBody: Codeunit "Temp Blob"; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27
  • EmailFile(AttachmentStream: Instream; AttachmentName: Text; HtmlBodyInstream: Instream; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 + BC27
  • EmailFileWithSubjectAndReportUsage(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyFilePath: Text[250]; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 (obsolete 27.0: Use procedure EmailFileWithSubjectAndReportUsage that accepts a “Temp Blob” for the html body instead.)
  • EmailFileWithSubjectAndReportUsage(AttachmentStream: InStream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27
  • EmailFileWithSubjectAndReportUsage(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyFilePath: Text[250]; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceReference: RecordRef): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 (obsolete 27.0: Use procedure EmailFileWithSubjectAndReportUsage that accepts a “Temp Blob” for the html body instead.)
  • EmailFileWithSubjectAndReportUsage(AttachmentStream: InStream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceReference: RecordRef): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27
  • EmailFileWithSubjectAndReportUsage(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyFilePath: Text[250]; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27 (obsolete 27.0: Use procedure EmailFileWithSubjectAndReportUsage that accepts a “Temp Blob” for the html body instead.)
  • EmailFileWithSubjectAndReportUsage(AttachmentStream: InStream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean Δ BC27 + BC27 Δ BC27 + BC27 Δ BC27 + BC27
  • GetToAddressFromCustomer(BillToCustomerNo: Code[20]): Text[250]
  • GetToAddressFromVendor(BuyFromVendorNo: Code[20]): Text[250]
  • GetAttachmentFileName(var AttachmentFileName: Text[250]; PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer)
  • GetEmailBody(PostedDocNo: Code[20]; ReportUsage: Integer; CustomerNo: Code[20]): Text
  • ReplaceCustomerNameWithPlaceholder(CustomerNo: Code[20]; BodyText: Text): Text
  • GetEmailSubject(PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer): Text[250]
  • EmailFileFromStream(AttachmentStream: InStream; AttachmentName: Text; Body: Text; Subject: Text; MailTo: Text; HideDialog: Boolean; ReportUsage: Integer): Boolean
  • EmailHtmlFromStream(MailInStream: InStream; ToEmailAddress: Text[250]; Subject: Text; HideDialog: Boolean; ReportUsage: Integer): Boolean
  • EmailFileAndHtmlFromStream(AttachmentStream: InStream; AttachmentName: Text; MailInStream: InStream; ToEmailAddress: Text[250]; Subject: Text; HideDialog: Boolean; ReportUsage: Integer): Boolean
  • EmailFileAndHtmlFromStream(AttachmentStream: InStream; AttachmentName: Text; MailInStream: InStream; ToEmailAddress: Text[250]; Subject: Text; HideDialog: Boolean; ReportUsage: Integer; PostedDocNo: Code[20]; IsFromPostedDoc: Boolean): Boolean

Plus 4 local procedures.

Triggers

OnRun

Relations

Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.

Called by

Deprecations

  • procedure EmailFile: Pending 27.0 (#if not CLEAN27), “Use procedure EmailFile that accepts a “Temp Blob” for the html body instead.”
  • procedure EmailFile: Pending 27.0 (#if not CLEAN27), “Use procedure EmailFile that accepts a “Temp Blob” for the html body instead.”
  • procedure EmailFile: Pending 27.0 (#if not CLEAN27), “Use procedure EmailFile that accepts a “Temp Blob” for the html body instead.”
  • procedure EmailFile: Pending 27.0 (#if not CLEAN27), “Use procedure EmailFile that accepts a “Temp Blob” for the html body instead.”
  • procedure EmailFile: Pending 27.0 (#if not CLEAN27), “Use procedure EmailFile that accepts a “Temp Blob” for the html body instead.”
  • procedure EmailFile: Pending 27.0 (#if not CLEAN27), “Use procedure EmailFile that accepts a “Temp Blob” for the html body instead.”
  • procedure EmailFileWithSubjectAndReportUsage: Pending 27.0 (#if not CLEAN27), “Use procedure EmailFileWithSubjectAndReportUsage that accepts a “Temp Blob” for the html body instead.”
  • procedure EmailFileWithSubjectAndReportUsage: Pending 27.0 (#if not CLEAN27), “Use procedure EmailFileWithSubjectAndReportUsage that accepts a “Temp Blob” for the html body instead.”
  • procedure EmailFileWithSubjectAndReportUsage: Pending 27.0 (#if not CLEAN27), “Use procedure EmailFileWithSubjectAndReportUsage that accepts a “Temp Blob” for the html body instead.”
  • procedure OnBeforeEmailFileInternal: Pending 27.0 (#if not CLEAN27), “Use new Event OnBeforeEmailItemPreparation instead.”

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Document-Mailing"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources