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

Productivity activities

Last updated Mar 13, 2026

GetMessagesAsync

Retrieves Outlook email messages asynchronously.

Namespace: UiPath.Mail.Activities.Api

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

Overloads

OverloadDescription
GetMessagesAsync(GetOutlookMailOptions, CancellationToken)Retrieves Outlook mail messages asynchronously, with additional options configured using the GetOutlookMailOptions object.
GetMessagesAsync(GetMailOptions, CancellationToken)Retrieves Outlook mail messages with additional options.
GetMessagesAsync(CancellationToken)Retrieves Outlook mail messages.

GetMessagesAsync(GetOutlookMailOptions, CancellationToken)

Retrieves Outlook mail messages asynchronously, with additional options configured using the GetOutlookMailOptions object.

Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	GetOutlookMailOptions options,
	CancellationToken token
)
Task<IReadOnlyCollection<MailMessage>> GetMessagesAsync(
	GetOutlookMailOptions options,
	CancellationToken token
)

options GetOutlookMailOptions : The options used to retrieve the email messages.

token CancellationToken : The cancellation token to cancel the operation.

Return value

Task<IReadOnlyCollection<MailMessage>>

The collection of messages.

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated