Subscribe

UiPath StudioX

The UiPath StudioX Guide

Mail Automation

StudioX enables you to automate tasks you perform with emails from the Outlook desktop application, Gmail, and Outlook 365.

After you add the account to automate as a resource to the automation using a Use Outlook 365, Use Gmail, or Use Desktop Outlook App activity, add the activities that use data from the account inside the resource activity. When configuring the child activities, you can select specific email data directly from the Plus plus buttonplus button menu in StudioX: Outlook folders, Gmail labels, the email selected in the Outlook desktop app when the project is executed, or message fields such as Subject, Body, Body as HTML, Bcc, Cc, To, From, Date (as text), and Priority.

📘

Note:

If you want to repeat one or more activities for multiple messages, add a For Each Email activity, and then add the activities to repeat inside it to process the emails one by one. This enables you to iterate through the emails in a desktop or web Outlook folder, Gmail label, or through the emails selected in the Outlook desktop app when the project is executed.

📘

Notes:

If the Outlook desktop app displays warning messages and prompts you to allow access to the program when you are working with Outlook activities, follow the instructions in Outlook Troubleshooting to prevent the messages from being displayed.
StudioX and the Outlook desktop app must run with the same privileges (either run both as administrator or run both not as administrator).

Non-Delivery Reports (NDR)

NDR emails are automatically generated emails that you receive in certain situations. For example, when an email is sent to a non-existent email address. Non-Delivery Reports are supported by StudioX's mail activities.

📘

Notes:

  • If you forward a ReportItem (NDR mail), it is forwarded as a new mail with the NDR mail attached.
  • NDR emails parsed by Outlook Desktop App have the To and From fields set to null.
  • NDR emails parsed by Outlook 365 have the To field set to the value from the email that generated the NDR.

To learn how to work with mail automation, see the tutorials in this section.

To find out more about mail activities, this section contains detailed descriptions for each activity.

Updated 2 months ago



Mail Automation


Suggested Edits are limited on API Reference Pages

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