activities
latest
false
UiPath logo, featuring letters U and I in white
Productivity Activities
Last updated Nov 21, 2024

Get Newest Email

UiPath.MicrosoftOffice365.Activities.Mail.GetNewestEmail

Description

Returns the most recent email that matches the search criteria.

Scopes

This activity requires the following scopes:

  • Mail.Read AND User.Read

OR

  • Mail.ReadWrite AND User.Read

OR

  • Mail.Read.Shared AND User.Read

OR

  • Mail.ReadWrite.Shared AND User.Read

OR

  • Mail.Read AND User.ReadWrite

OR

  • Mail.ReadWrite AND User.ReadWrite

OR

  • Mail.Read.Shared AND User.ReadWrite

OR

  • Mail.ReadWrite.Shared AND User.ReadWrite

Project compatibility

Windows | Cross-platform

Configuration

  • Microsoft Outlook 365 connection - The connection for the Microsoft 365 account to use in the activity.
  • Use shared mailbox - Set the toggle to On if you want to use a shared mailbox. Default value is Off.

    • Shared mailbox - The email address of a user or shared mailbox. This field supports String type input.

  • Email folder - The folder that stores the email. Browse the Outlook folders and select a folder. This field accepts IResource input. Use the See more button menu to use a variable as the input mode for the folder path.
    • Select the Reload Email Folder Data option if you've modified your email folders and need to retrieve the latest data.

Additional options

Options

  • Shared mailbox - The email address of a user or the shared mailbox from which to retrieve the email. This property supports String variables and string formatted values.
  • Body as HTML - Boolean value. Set to True to return the body of the email as HTML code. Set to 'False' to return plain text.
  • Unread only - Boolean value. Set to True to only consider unread emails.
  • With attachments only - Boolean value. Set to True to only consider emails with attachments.
  • Importance - The predefined priority of the email: Any, Low, Normal, High.
  • Mark as read - Boolean value. Set to True to mark the retrieved email as read.
  • Filter - Additional conditions to filter the emails. Supports filtering on the following fields: Attachment name, BCC, Body, CC, Category, Date and time, From, Recipients, Subject, To, Type.

Output

  • Email - The email retrieved by the activity. Automatically generated output variable. You can use it as it is or save it with a different name. You can use this in other activities.

Example



See also:
  • Description
  • Project compatibility
  • Configuration
  • Example

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.