Subscribe

UiPath StudioX

The UiPath StudioX Guide

For Each Mail Message

UiPath.Mail.Activities.Business.OutlookForEachMail

Executes one or more activities for each email in an Outlook folder or in a selection of messages. Use For Each Mail Message when you are working with multiple messages and you want to repeat one or more activities for each message. You then add the activities to repeat inside For Each Mail Message and, when you configure the input of the activities, you select Current Mail from the plus button menu to indicate that you want to repeat the actions for each message. For some activities, you must select a specific message field to use from the current mail: Subject, Body (message body in plain text), Bcc, Cc, To, From (sender and recipient fields return a list of email addresses separated by semicolon), or Priority (High, Low, Normal).

To learn how to use this activity, see:

In the Body of the Activity

  • Use mails from - Click plus button on the right side of the field and then, from the menu, select the Outlook folder that contains the mail messages you want to use, or choose Selected Mails or Selected Folder to use the messages or the folder that are selected in Outlook at the moment when the project is executed. Alternatively, you can select Open in Advanced Editor and enter a VB expression.

Properties

Common

  • Display Name - The name displayed for the activity in the Designer panel.

Misc

  • Private - If selected, the data used in the activity is not logged by StudioX.

Options

Updated 3 years ago


For Each Mail Message


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.