Appearance
Function: getMailFolders()
ts
function getMailFolders(client: Client): Promise<any>;Defined in: src/ms-graph/outlook.ts:162
Get all mail folders for the authenticated user.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | The Microsoft Graph client. |
Returns
Promise<any>
A list of mail folders.
Example
ts
const client = await getMsGraphClient(creds);
const folders = await getMailFolders(client);
console.log('Found folders:', folders.map((f: any) => f.displayName));