Unable to access the Sharepoint List using Microsoft Graph API--

后端 未结 3 1267
你的背包
你的背包 2020-12-18 07:26

Working with the Microsoft graph api and especially the sharepoint beta api and i am constantly running into issues. I know its beta, but still;)

SO the issue is Whe

3条回答
  •  一向
    一向 (楼主)
    2020-12-18 08:18

    The format of the ID's for sites have changed as part of a set of updates to the API this week. The new format is documented here, but it includes the SharePoint hostname, SPSite.ID, and SPWeb.ID as a triplet:

    https://graph.microsoft.com/beta/sites/contoso.sharepoint.com,fc016e3c-d8ae-4ee0-a10c-de6d26788b6a,9a4ea7a5-c3c4-44ae-9f80-273bd67431b8
    

    If you add the hostname into your IDs, your calls should start working again. You can discover the hostname by making a request to:

    https://graph.microsoft.com/beta/sites/root/siteCollection/hostname
    

    You can also search for sites now using the following search syntax:

    https://graph.microsoft.com/beta/sites?search={keyword}
    

提交回复
热议问题