Interface "Email Connector v3"
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 | 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 | Record "Email Inbox" |
The email inbox record that will store the emails. |
Filters | Record "Email Retrieval Filters" temporary |
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. |