Retrieves the items from a specified SharePoint list.
The Microsoft Graph client instance used to make the API call.
An object containing the site ID and list ID.
The ID of the SharePoint list.
The ID of the SharePoint site.
A promise that resolves to an array of list items.
const client = await getSharePointClient(opt);const options = { siteId: 'your-site-id', listId: 'your-list-id' };const items = await getListItems(client, options);console.log(items); Copy
const client = await getSharePointClient(opt);const options = { siteId: 'your-site-id', listId: 'your-list-id' };const items = await getListItems(client, options);console.log(items);
Retrieves the items from a specified SharePoint list.