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

Productivity activities

Last updated Mar 13, 2026

Get Email Folders List

UiPath.MicrosoftOffice365.Activities.Mail.GetEmailFoldersListConnections

Description

Retrieves a list of email folders for the selected account.

Scopes

This activity requires the following scopes:

  • Mail.Read AND User.Read

OR

  • Mail.ReadWrite AND User.Read

OR

  • Mail.Read.Shared AND User.Read

OR

  • Mail.ReadWrite.Shared AND User.Read

OR

  • Mail.Read AND User.ReadWrite

OR

  • Mail.ReadWrite AND User.ReadWrite

OR

  • Mail.Read.Shared AND User.ReadWrite

OR

  • Mail.ReadWrite.Shared AND User.ReadWrite

Project compatibility

Windows

Configuration

In the body of the activity

  • Add new connection - Select this option to connect to a Microsoft Outlook 365 account to use in the activity.
  • Use shared mailbox - By default, the value is set to Off. Set the toggle to On, if you want to use a shared mailbox. When you enable this option, the following field becomes visible:
    • Shared mailbox - The email address of a user or shared mailbox. This field supports input of type String.

Additional properties

Output

  • Email Folders - The list of email folders retrieved by the activity, stored in a List<Office365Message> variable. This is an automatically generated output variable. You can use it as it is, or save it with a different name. In addition, you can use this in other activities as well.
Note:

For more details on the plus menu options, check Designing automations.

  • Description
  • Scopes
  • Project compatibility
  • Configuration

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated