Activities
latest
false
Banner background image
Productivity Activities
Last updated Apr 26, 2024

Get Newest Email

UiPath.GSuite.Activities.GetNewestEmailConnections

Description

Retrieves the newest email from the specified mail folder or label.

Scopes

This activity requires the following scopes:

  • https://mail.google.com/
  • https://www.googleapis.com/auth/gmail.modify
  • https://www.googleapis.com/auth/gmail.readonly
  • https://www.googleapis.com/auth/gmail.metadata

Project compatibility

Windows | Cross-platform

Configuration

  • Gmail connection - The connection for the Google Workspace account to use in the activity.
  • Email folder or label - The folder or label to get email messages from. This field accepts IResource input. Click the Folder docs image icon to browse email folders. Use See more docs image button menu to switch to Folder path input mode.
    • Folder path - Specify the full path of the folder or label. This property supports String variables and string formatted values.

      Select the Reload File Picker option if you've modified your folders and need to retrieve the latest data.

  • Additional filters - Click this field to open the Filter builder and add additional filters for the query. Supports filtering on the following fields: BCC, Has the words, CC, Categories, Date and time, Attachment name, From, Subject, To, Labels.

Note: When the inbox folder names include the / delimiter, the Email folder dropdown menu may display folders in an incorrect order.
Additional options

Options

  • Shared mailbox - The email address of a user or shared mailbox to retrieve the email from. This property supports String variables and string formatted values.
  • Unread only - Specifies whether to consider only unread emails. This field supports Boolean values. By default, False is selected.
  • With attachments only - Specifies whether to consider only emails with attachemnts. This field supports Boolean values. By default, False is selected.
  • Important only - Specifies whether to consider only important emails. This field supports Boolean values. By default, False is selected.
  • Starred only - Specifies whether to consider only starred emails. This field supports Boolean values. By default, False is selected.
  • Mark as read - Specifies whether to mark the retrieved email as read. This field supports Boolean values. By default, False is selected.

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, such as Forward Email.

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.