listMailFolders lists either the mailbox’s top-level folders or the direct
children of a selected folder.
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.