Skip to content

Function: getLists()

ts
function getLists(client: Client, options: {
  siteId: string;
}): Promise<any>;

Defined in: src/ms-graph/sharepointGraph.ts:74

Get all lists from a SharePoint site.

Parameters

ParameterTypeDescription
clientClientThe Microsoft Graph client instance.
options{ siteId: string; }The site identifier.
options.siteIdstringThe SharePoint site ID.

Returns

Promise<any>

An array of SharePoint lists.

Example

ts
const client = await getMsGraphClient(creds);
const lists = await getLists(client, { siteId: 'contoso.sharepoint.com,abc123,def456' });
console.log('Lists:', lists.map((l: any) => l.displayName));

Matterway Assistant SDK Documentation