outlook.listMailFolders returns top-level folders or a selected folder’s direct children.
Example
automations/list-outlook-folders.automation.ts
Inputs
Output
Returns folders withfolderId, displayName, childFolderCount, totalItemCount, unreadItemCount, and isHidden. Numeric counts default to zero and isHidden to false if Graph omits them.
Folder names match case-insensitively across the full hierarchy. Use a path such as Projects/Launch or an ID when duplicate names would be ambiguous.