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

Codeunit 9520 "Mail Management"

Base Application · System.Email

Across versions

  1. BC23present
  2. BC244 procedures removed, 1 events added
  3. BC25-26unchanged
  4. BC272 procedures removed, 2 events changed
  5. BC28-30unchanged

Neighbourhood 70 connected objects and pages

Codeunit 1630 "Office Management" (event subscribers)Office ManagementCodeunit 8901 "Email" (calls, 5 links)EmailCodeunit 4102 "Temp Blob List" (calls, 4 links)Temp Blob ListCodeunit 425 "Data Compression" (calls, 4 links)Data CompressionCodeunit 5916 "ServMailManagement" (calls, 4 links)ServMailManagementCodeunit 4100 "Temp Blob" (calls, 3 links)Codeunit 8904 "Email Message" (calls, 3 links)Email MessageCodeunit 8894 "Email Account" (calls, 2 links)Email AccountCodeunit 104058 "Upgrade User Setup" (calls)Upgrade User SetupCodeunit 1509 "Notification Entry Dispatcher" (calls)Notification Entry DispatcherCodeunit 1687 "Email Logging Message" (calls)Codeunit 1890 "Reminder Communication" (calls)Reminder CommunicationCodeunit 28 "Error Message Management" (calls)Codeunit 4030 "Client Type Management" (calls)Client Type ManagementCodeunit 47021 "SL Vendor Migrator" (calls)SL Vendor MigratorCodeunit 6702 "O365 Contact Sync. Helper" (calls)O365 Contact Sync. HelperCodeunit 8893 "Email Scenario" (calls)Report 116 "Statement" (calls)StatementReport 117 "Reminder" (calls)Report 118 "Finance Charge Memo" (calls)Report 1303 "Standard Sales - Draft Invoice" (calls)Report 1304 "Standard Sales - Quote" (calls)Report 1305 "Standard Sales - Order Conf." (calls)Report 1306 "Standard Sales - Invoice" (calls)Report 1307 "Standard Sales - Credit Memo" (calls)Report 1308 "Standard Sales - Shipment" (calls)Report 1309 "Standard Sales - Return Rcpt." (calls)Report 1316 "Standard Statement" (calls)Report 1322 "Standard Purchase - Order" (calls)Report 208 "Sales - Shipment" (calls)Report 210 "Blanket Sales Order" (calls)Report 215 "Archived Sales Quote" (calls)Report 216 "Archived Sales Order" (calls)Report 404 "Purchase - Quote" (calls)Report 405 "Order" (calls)Report 406 "Purchase - Invoice" (calls)Report 407 "Purchase - Credit Memo" (calls)Report 408 "Purchase - Receipt" (calls)Report 410 "Blanket Purchase Order" (calls)Report 413 "Self Billing Invoice" (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
Permissions TableData “Email Attachments” = rimd

Events published

  • OnSetIsHandlingGetEmailBodyCustomer(var Result: Boolean) (integration)
  • OnSetIsHandlingGetEmailBodyVendor(var Result: Boolean) (integration)
  • OnBeforeCheckValidEmailAddresses(Recipients: Text; var IsHandled: Boolean) (integration)
  • OnBeforeCheckValidEmailAddr(EmailAddress: Text; var IsHandled: Boolean) (integration)
  • OnBeforeDoSending(var CancelSending: Boolean) (integration)
  • OnBeforeIsEnabled(OutlookSupported: Boolean; var Result: Boolean; var IsHandled: Boolean) (integration)
  • OnBeforeDownloadPdfAttachment(var TempEmailItem: Record "Email Item" temporary; var IsHandled: Boolean) (integration)
  • OnBeforeQualifyFromAddress(var TempEmailItem: Record "Email Item" temporary) (integration)
  • OnBeforeValidateEmailAddressField(var EmailAddress: Text; var IsHandled: Boolean) (integration)
  • OnBeforeSendMailOnWinClient(var TempEmailItem: Record "Email Item" temporary) Δ BC27 (integration, obsolete 27.0)
  • OnAfterDeleteTempAttachments(var EmailItem: Record "Email Item") Δ BC27 (integration, obsolete 27.0)
  • OnAfterGetSenderEmailAddress(var EmailItem: Record "Email Item") (integration)
  • OnAfterIsBackground(var Result: Boolean) (integration)
  • OnAfterGetAttachmentName(AttachmentNames: List of [Text]; Index: Integer; var AttachmentName: Text[250]; var TempEmailItem: Record "Email Item" temporary) (integration)
  • OnAfterSendMailOrDownload(var TempEmailItem: Record "Email Item" temporary; var MailSent: Boolean) (integration)
  • OnBeforeImageBase64ToUrl(var BodyText: Text; var SearchText: Text; var Regex: DotNet Regex; var MemoryStream: DotNet MemoryStream; var MediaId: Guid; var Base64: Text; var Convert: DotNet Convert; var IsHandled: Boolean) (integration)
  • OnQualifyFromAddressOnAfterGetEmailAccount(var TempEmailItem: Record "Email Item" temporary; EmailScenario: Enum "Email Scenario"; var TempEmailAccount: Record "Email Account" temporary) (integration)
  • OnSendOnBeforeQualifyFromAddress(var TempEmailItem: Record "Email Item" temporary; EmailScenario: Enum "Email Scenario") (integration)
  • OnSendMailOrDownloadOnBeforeMailManagementIsSent(var MailManagement: Codeunit "Mail Management"; TempEmailItem: Record "Email Item" temporary) (integration)
  • OnSendViaEmailModuleOnAfterAddAttachments(var Message: Codeunit "Email Message"; var TempEmailItem: Record "Email Item" temporary) (integration)
  • OnSendViaEmailModuleOnAfterCreateMessage(var Message: Codeunit "Email Message"; var TempEmailItem: Record "Email Item" temporary) (integration)
  • OnSendViaEmailModuleOnAfterEmailSend(var Message: Codeunit "Email Message"; var TempEmailItem: Record "Email Item" temporary; var MailSent: Boolean; var Cancelled: Boolean; var HideEmailSendingError: Boolean) (integration)
  • OnBeforeSendViaEmailModule(var TempEmailItem: Record "Email Item" temporary; EmailScenario: Enum "Email Scenario"; var TempEmailAccount: Record "Email Account" temporary; HideMailDialog: Boolean; var IsHandled: Boolean; var Result: Boolean) (integration)
  • OnAfterDownloadPDFAttachment() (integration)
  • OnSendViaEmailModuleOnBeforeOpenInEditorModally(EmailScenario: Enum "Email Scenario"; var TempEmailAccount: Record "Email Account" temporary; var Message: Codeunit "Email Message"; var HideMailDialog: Boolean) + BC24 (integration)

Event subscriptions

  • HandleOnOnSetIsHandlingGetEmailBodyCustomer subscribes to Codeunit “Mail Management” OnSetIsHandlingGetEmailBodyCustomer
  • HandleOnSetIsHandlingGetEmailBodyVendor subscribes to Codeunit “Mail Management” OnSetIsHandlingGetEmailBodyVendor

Procedures

  • AddSource(TableId: Integer; SystemId: Guid)
  • AddSendTo(EmailAddresses: Text)
  • RecipientStringToList(DelimitedRecipients: Text; var Recipients: List of [Text]) (internal)
  • InitializeFrom(NewHideMailDialog: Boolean; NewHideEmailSendingError: Boolean)
  • SetHideMailDialog(NewHideMailDialog: Boolean)
  • SetHideEmailSendingError(NewHideEmailSendingError: Boolean)
  • CheckValidEmailAddresses(Recipients: Text)
  • CheckValidEmailAddress(EmailAddress: Text)
  • ValidateEmailAddressField(var EmailAddress: Text)
  • IsEnabled(): Boolean
  • IsCancelled(): Boolean
  • IsSent(): Boolean
  • Send(var ParmEmailItem: Record "Email Item"; EmailScenario: Enum "Email Scenario"): Boolean − BC24
  • Send(var ParmEmailItem: Record "Email Item"; EmailScenario: Enum "Email Scenario"; Enqueue: Boolean): Boolean − BC24
  • SendMailOrDownload(var TempEmailItem: Record "Email Item" temporary; HideMailDialog: Boolean; EmailScenario: Enum "Email Scenario") − BC24
  • SendMailOrDownload(var TempEmailItem: Record "Email Item" temporary; HideMailDialog: Boolean; EmailScenario: Enum "Email Scenario"; Enqueue: Boolean) − BC24
  • DownloadPdfAttachment(var TempEmailItem: Record "Email Item" temporary)
  • ImageBase64ToUrl(BodyText: Text): Text
  • TryGetSenderEmailAddress(var FromAddress: Text[250])
  • GetSenderEmailAddress(EmailScenario: Enum "Email Scenario"): Text[250]
  • IsHandlingGetEmailBody(): Boolean
  • IsHandlingGetEmailBodyCustomer(): Boolean
  • IsHandlingGetEmailBodyVendor(): Boolean

Plus 6 local procedures.

Triggers

OnRun

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 OnAfterDeleteTempAttachments: Pending 27.0 (#if not CLEAN27), “This event is never raised.”
  • procedure OnBeforeSendMailOnWinClient: Pending 27.0 (#if not CLEAN27), “This event is never raised.”

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: "Mail Management"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources