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

Productivity activities

Last updated Feb 19, 2026

GetEmail

Retrieves an email associated with the given emailId.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

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

Syntax

IMailGetEmail(
	stringemailId,
	stringaccount = null,
	boolbodyAsHtml = false
)
IMailGetEmail(
	stringemailId,
	stringaccount = null,
	boolbodyAsHtml = false
)

Parameters

emailId String : The id of the email that should be retrieved.

account String (Optional) : If specified uses the given shared mailbox, otherwise it uses the current account. Optional, default value is null.

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
Trust and Security
© 2005-2026 UiPath. All rights reserved.