SetCategory

Estimated reading: 2 minutes

The SetCategory activity is used to assign categories to one or more email messages, such as blue, green, yellow, etc. It allows users to organize and classify emails within a mailbox by applying predefined or custom categories.

This activity accepts a collection of email items (for example, those retrieved from the Read Mail activity) and applies the specified category name to each email in the collection. It helps improve email management by enabling better filtering and grouping of messages based on their assigned categories.

Properties

INPUT

MailItems*: Accepts a collection of email messages retrieved from the Read Mail activity, on which the specified category will be applied.

Category Name*: Specifies the predefined or custom category name to be assigned to the email, such as blue, green, yellow, etc.

MISC

DisplayName: Displays the name of the activity. This can be customized for better readability and easier troubleshooting.

SkipOnError: Specifies a Boolean value (True or False).
True: Continues executing the workflow even if an error occurs.
False: Stops the workflow if an error is encountered.
None: If left blank, the default behavior is False.

Version: Displays the version of the activity being used. This field is auto populated and read-only.

OUTPUT

Result: Indicates the execution status of the activity. Returns a Boolean value:
True: The activity executed successfully without errors.
False: The activity failed due to an error.

UpdatedCount: Indicates the total number of email messages that were successfully processed and updated with the specified category. The output is returned as an Integer.

UpdatedMailItems  : Returns a collection of email messages that were successfully updated with the specified category. The output is of type List of mailitem.

*Represents mandatory fields to execute the workflow.

Share this Doc

SetCategory

Or copy link

CONTENTS