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 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:
- Tutorial: Iterating through Outlook Mails and Saving Attachments.
- Tutorial: Saving, Renaming, and Moving Attachments.
In the Body of the Activity
- Use mails from - Click 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
- Mails - See Use mails from in the body of the activity.
Updated 3 years ago