UiPath Documentation
activities
latest
false
Productivity activities

GetNewestEmail

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

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?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated