Table of Contents

Interface "Email Connector v4"

Namespace: System.Email

An e-mail connector interface enhances the "Email Connector" with reading, replying to e-mails and marking emails as read.

Methods

Reply

Reply to an e-mail using the provided account.

procedure Reply(var EmailMessage: Codeunit "Email Message", AccountId: Guid)

Parameters

Name Type Description
EmailMessage Codeunit System.Email."Email Message"

The email message that is to be sent out.

AccountId Guid

The email account ID which is used to send out the email.

RetrieveEmails

Read e-mails from the provided account.

procedure RetrieveEmails(AccountId: Guid, var EmailInbox: Record "Email Inbox", var Filters: Record "Email Retrieval Filters" temporary)

Parameters

Name Type Description
AccountId Guid

The email account ID which is used to send out the email.

EmailInbox Table System.Email."Email Inbox"

The email inbox record that will store the emails.

Filters Table System.Email."Email Retrieval Filters"

Filters to be used when retrieving emails.

MarkAsRead

Mark an e-mail as read in the provided account.

procedure MarkAsRead(AccountId: Guid, ExternalId: Text)

Parameters

Name Type Description
AccountId Guid

The email account ID.

ExternalId Text

The external ID of the email.

GetEmailFolders

Get email folders from the provided account.

procedure GetEmailFolders(AccountId: Guid, var EmailFolders: Record "Email Folders" temporary)

Parameters

Name Type Description
AccountId Guid

The email account ID.

EmailFolders Table System.Email."Email Folders"

The email folders retrieved.

See also