Table of Contents

Interface "Email Connector v5"

Namespace: System.Email

An e-mail connector interface enhances the "Email Connector v4" with email category management.

Methods

GetEmailCategories

Get email categories from the provided account.

procedure GetEmailCategories(AccountId: Guid; var EmailCategories: Record "Email Categories" temporary)

Parameters

Name Type Description
AccountId Guid

The email account ID.

EmailCategories Table System.Email."Email Categories"

The email categories retrieved.

CreateEmailCategory

Create a new email category in the provided account.

procedure CreateEmailCategory(AccountId: Guid; CategoryDisplayName: Text; CategoryColor: Text): Text

Parameters

Name Type Description
AccountId Guid

The email account ID.

CategoryDisplayName Text

The display name of the category to create.

CategoryColor Text

The color of the category (optional).

Returns

Type Description
Text

The ID of the created category.

ApplyEmailCategory

Apply email categories to an email message.

procedure ApplyEmailCategory(AccountId: Guid; ExternalId: Text; Categories: List of [Text])

Parameters

Name Type Description
AccountId Guid

The email account ID.

ExternalId Text

The external message ID of the email to update.

Categories List of [Text]

The list of category display names to apply to the email.

See also