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

GetNewestEmail

Retrieves the most recent email from the folder that matches the criteria defined in the filter.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

Assembly: UiPath.MicrosoftOffice365.Activities.Api (in UiPath.MicrosoftOffice365.Activities.Api.dll)

Syntax

IMail GetNewestEmail(
	IMailFolder folder = null,
	MailFilter filter = null,
	string account = null,
	bool markAsRead = false,
	bool bodyAsHtml = false
)IMail GetNewestEmail(
	IMailFolder folder = null,
	MailFilter filter = null,
	string account = null,
	bool markAsRead = false,
	bool bodyAsHtml = false
)

Parameters

folder IMailFolder (Optional)
The mail folder from which to retrieve the email from. Optional, default value is All Mail.
filter MailFilter (Optional)
The filter criteria that should be matched for the retrieved email. Optional, default value is null.
account String (Optional)
If specified uses the given shared mailbox, otherwise it uses the current account. Optional, default value is null.
markAsRead Boolean (Optional)
Specifies if the retrieved email should be marked as read. Optional, default value is false.
bodyAsHtml Boolean (Optional)
Specifies if the content of the email should be interpreted as HTML format. Optional, default value is false.

Return value

IMail - The matched email.
  • 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.