Retrieves the site ID from the SharePoint Graph API.
The client instance used to make the API request.
An object containing the domain and site name.
The domain of the SharePoint site.
The name of the SharePoint site.
A promise that resolves to the site ID.
const client = await getSharePointClient(opt);const options = { domain: 'example.com', site: 'mysite' };const siteId = await getSiteId(client, options);console.log(siteId); Copy
const client = await getSharePointClient(opt);const options = { domain: 'example.com', site: 'mysite' };const siteId = await getSiteId(client, options);console.log(siteId);
Retrieves the site ID from the SharePoint Graph API.