Skip to content

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

ParameterTypeDescription
clientClientThe 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));

Matterway Assistant SDK Documentation