activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity Activities

Last updated Dec 6, 2024

GetEmails

Retrieves a list of emails from the label folder that match the criteria defined in the filter.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Syntax

public IReadOnlyCollection<IMail> GetEmails(
	IMailLabel folder = null,
	MailFilter filter = null,
	bool includeSubfolders = true,
	bool markAsRead = false,
	int? maxResults = null
)public IReadOnlyCollection<IMail> GetEmails(
	IMailLabel folder = null,
	MailFilter filter = null,
	bool includeSubfolders = true,
	bool markAsRead = false,
	int? maxResults = null
)

Parameters

folder IMailLabel (Optional)
The label folder from which to retrieve the emails from. Optional, default value is All Mail.
filter MailFilter (Optional)
The mail filter criteria that should be matched for the retrieved emails. Optional, default value is null.
includeSubfolders Boolean (Optional)
Specifies if subfolders should be included in the search results. Optional, default value is true.
markAsRead Boolean (Optional)
Specifies if the retrieved emails should be marked as read. Optional, default value is false.
maxResults Nullable<Int32> (Optional)
Maximum count of retrieved results. Values lower than 0 will be interpreted as unlimited. Optional, default value is unlimited.

Return value

IReadOnlyCollection<IMail> - A list of emails that match the given criteria.
  • Syntax
  • Parameters
  • Return value

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.