{"title":"Codeunit 8901 Email, obsolete","url":"https://jonas-paprotka.de/ref/codeunit/8901-email/obsolete/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":8901,"name":"Email","app":"System Application","versions":"17-29","url":"https://jonas-paprotka.de/ref/codeunit/8901-email/","json":"https://jonas-paprotka.de/ref/codeunit/8901-email.json"},"aspect":"obsolete","total":9,"rows":[{"kind":"procedure","name":"GetSentEmailsForRecord(TableId: Integer; SystemId: Guid)","obsolete":{"state":"Pending","reason":"Use GetSentEmailsForRecord(TableId: Integer; SystemId: Guid; var ResultEmailOutbox: Record \"Email Outbox\" temporary) instead.","tag":"19.0"},"obsoleteSince":19,"last":22},{"kind":"procedure","name":"AddRelation(EmailMessage: Codeunit \"Email Message\"; TableId: Integer; SystemId: Guid; RelationType: Enum \"Email Relation Type\")","obsolete":{"state":"Pending","reason":"Use \"AddRelation(EmailMessage: Codeunit \"Email Message\"; TableId: Integer; SystemId: Guid; RelationType: Enum \"Email Relation Type\")\" with origin","tag":"20.0"},"obsoleteSince":19,"last":22},{"kind":"procedure","name":"Reply(EmailMessage: Codeunit \"Email Message\"; ExternalId: Text; EmailAccountId: Guid; EmailConnector: Enum \"Email Connector\")","obsolete":{"state":"Pending","reason":"Replaced by Reply without the ExternalId parameter. ExternalId is not used and is contained in the EmailMessage parameter.","tag":"26.0"},"obsoleteSince":25,"last":29},{"kind":"procedure","name":"ReplyAll(EmailMessage: Codeunit \"Email Message\"; ExternalId: Text; EmailAccountId: Guid; EmailConnector: Enum \"Email Connector\")","obsolete":{"state":"Pending","reason":"Replaced by ReplyAll without the ExternalId parameter. ExternalId is not used and is contained in the EmailMessage parameter.","tag":"26.0"},"obsoleteSince":25,"last":29},{"kind":"procedure","name":"EnqueueReply(EmailMessage: Codeunit \"Email Message\"; ExternalId: Text; EmailAccountId: Guid; EmailConnector: Enum \"Email Connector\"; var EmailOutbox: Record \"Email Outbox\")","obsolete":{"state":"Pending","reason":"Replaced by EnqueueReply without the ExternalId parameter. ExternalId is not used and is contained in the EmailMessage parameter.","tag":"26.0"},"obsoleteSince":25,"last":29},{"kind":"procedure","name":"EnqueueReplyAll(EmailMessage: Codeunit \"Email Message\"; ExternalId: Text; EmailAccountId: Guid; EmailConnector: Enum \"Email Connector\"; var EmailOutbox: Record \"Email Outbox\")","obsolete":{"state":"Pending","reason":"Replaced by EnqueueReplyAll without the ExternalId parameter. ExternalId is not used and is contained in the EmailMessage parameter.","tag":"26.0"},"obsoleteSince":25,"last":29},{"kind":"procedure","name":"RetrieveEmails(EmailAccountId: Guid; EmailConnector: Enum \"Email Connector\"; var EmailInbox: Record \"Email Inbox\")","obsolete":{"state":"Pending","reason":"Replaced by RetrieveEmails with an additional Filters parameter of type Record \"Email Retrieval Filters\".","tag":"26.0"},"obsoleteSince":25,"last":29},{"kind":"event","name":"OnGetTestEmailBody(Connector: Enum \"Email Connector\"; var Body: Text)","obsolete":{"state":"Pending","reason":"The event will be removed. Subscribe to OnGetBodyForTestEmail instead","tag":"17.3"},"obsoleteSince":17,"last":22},{"kind":"event","name":"OnAfterSendEmail(MessageId: Guid; Status: Boolean)","obsolete":{"state":"Pending","reason":"This event has been replaced with OnAfterEmailSend and OnAfterEmailSendFailed which are isolated.","tag":"20.1"},"obsoleteSince":20,"last":22}]}