community postIntegration & APIscommunity - not Microsoftreviewed - checked by Opus

Dynamics 365 Business Central: How to display/add “Sent To” on the Sent Emails (8883, List) page?

The Sent Emails page (8883) shows the sender but not the recipients. The post adds a Sent To column with a page extension that reads the internal Message Id from table Sent Email via RecordRef and FieldRef, then calls Get and GetRecipients on the public Email Message codeunit to build a semicolon-separated list of To recipients.

post Dynamics 365 Lab

Yun Zhu · 2026-04-28 · 543 words · about 2 min

Key points

  • Sent Emails uses a temporary source table, and table 8889 Sent Email has no Sent To field; all its fields except Id are internal.
  • The standard Email Viewer gets recipients through Email Message Impl., which is internal and cannot be used from an extension.
  • The public codeunit Email Message offers Get and GetRecipients, which can stand in for the internal implementation.
  • RecordRef and FieldRef on the Sent Email table get around the internal access to read the Message Id in OnAfterGetRecord.

AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

No source states these links: they share an object, a model read them, or a person found the same subject.

Heads up

  • warning: “The Sent Email page in Business Central does not display the ‘Sent To’ details.” (about page Sent Emails)
  • warning: “Table 8889 “Sent Email” does not have a “Sent To” field.” (about table Sent Email)
  • warning: “All other fields have their Access attribute set to Internal.” (about table Sent Email)

Context

  • Features: Email functionality, Sent Emails page, Page extensions, Email recipients, Email Message API

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.