Get Email Folders for a User

Retrieve all the email folders that are in the specified user's mailbox.

This procedure is part of the Microsoft Outlook Book (BDK). To use this book, you must first learn it in your agent.

Note: It requires the following permissions on the application: Mail.Read, Mail.ReadWrite, Mail.ReadBasic, Mail.ReadBasic.All, Mail.ReadWrite.Shared

Input Concepts

Concept
Description
Type
Required

The user whose email folders will be retrieved

office user

Yes

Output Concepts

Concept
Description
Type

All the email folders for the user

outlook email folder

Examples

  1. Retrieve all email folders for the specified user

get users from office365 whose mail is "[email protected]"
use the first user as the user
retrieve the user's email folders
  1. Retrieve all email folders for the specified user that match the provided name

get users from office365 whose mail is "[email protected]"
use the first user as the user
retrieve the user's email folders whose "displayName" is "Inbox"

Last updated

Was this helpful?