Codeunit 8901 Email

System Application, System.Email

9 obsolete

Procedures 7

GetSentEmailsForRecord(TableId: Integer; SystemId: Guid): Record "Sent Email"18 to 22
Pending, tag 19.0, obsolete since 19: Use GetSentEmailsForRecord(TableId: Integer; SystemId: Guid; var ResultEmailOutbox: Record "Email Outbox" temporary) instead.
AddRelation(EmailMessage: Codeunit "Email Message"; TableId: Integer; SystemId: Guid; RelationType: Enum "Email Relation Type")18 to 22
Pending, tag 20.0, obsolete since 19: Use "AddRelation(EmailMessage: Codeunit "Email Message"; TableId: Integer; SystemId: Guid; RelationType: Enum "Email Relation Type")" with origin
Reply(EmailMessage: Codeunit "Email Message"; ExternalId: Text; EmailAccountId: Guid; EmailConnector: Enum "Email Connector"): Booleannew in 25
Pending, tag 26.0, obsolete since 25: Replaced by Reply without the ExternalId parameter. ExternalId is not used and is contained in the EmailMessage parameter.
ReplyAll(EmailMessage: Codeunit "Email Message"; ExternalId: Text; EmailAccountId: Guid; EmailConnector: Enum "Email Connector"): Booleannew in 25
Pending, tag 26.0, obsolete since 25: Replaced by ReplyAll without the ExternalId parameter. ExternalId is not used and is contained in the EmailMessage parameter.
EnqueueReply(EmailMessage: Codeunit "Email Message"; ExternalId: Text; EmailAccountId: Guid; EmailConnector: Enum "Email Connector"; var EmailOutbox: Record "Email Outbox")new in 25
Pending, tag 26.0, obsolete since 25: Replaced by EnqueueReply without the ExternalId parameter. ExternalId is not used and is contained in the EmailMessage parameter.
EnqueueReplyAll(EmailMessage: Codeunit "Email Message"; ExternalId: Text; EmailAccountId: Guid; EmailConnector: Enum "Email Connector"; var EmailOutbox: Record "Email Outbox")new in 25
Pending, tag 26.0, obsolete since 25: Replaced by EnqueueReplyAll without the ExternalId parameter. ExternalId is not used and is contained in the EmailMessage parameter.
RetrieveEmails(EmailAccountId: Guid; EmailConnector: Enum "Email Connector"; var EmailInbox: Record "Email Inbox")new in 25
Pending, tag 26.0, obsolete since 25: Replaced by RetrieveEmails with an additional Filters parameter of type Record "Email Retrieval Filters".

Events 2

[IntegrationEvent] OnGetTestEmailBody(Connector: Enum "Email Connector"; var Body: Text)gone after 22
Pending, tag 17.3, obsolete since 17: The event will be removed. Subscribe to OnGetBodyForTestEmail instead
[IntegrationEvent] OnAfterSendEmail(MessageId: Guid; Status: Boolean)gone after 22
Pending, tag 20.1, obsolete since 20: This event has been replaced with OnAfterEmailSend and OnAfterEmailSendFailed which are isolated.