如何使用microsoft graph api在sharepoint中获取列(字段)

如何使用microsoft graph api在sharepoint中获取列(字段),sharepoint,microsoft-graph-api,Sharepoint,Microsoft Graph Api,当我调用MicrosoftGraphAPI返回一些属性时,我需要的属性中缺少一些 https://graph.microsoft.com/beta/sharepoint/sites/{site-id}/lists/{list-id}/fields 如果返回类型是我需要知道的选项列表,但我没有得到,因为调用权限Microsoft Graph API此时不支持此功能。同时,您可以使用SharePoint REST API检索字段信息,包括选项字段中可用的选项 有关如何使用SharePoint RE

当我调用MicrosoftGraphAPI返回一些属性时,我需要的属性中缺少一些

https://graph.microsoft.com/beta/sharepoint/sites/{site-id}/lists/{list-id}/fields

如果返回类型是我需要知道的选项列表,但我没有得到,因为调用权限

Microsoft Graph API此时不支持此功能。同时,您可以使用SharePoint REST API检索字段信息,包括选项字段中可用的选项

有关如何使用SharePoint REST API在MSDN上检索字段的更多详细信息,请参见:


要调用SharePoint REST API,您需要知道SharePoint站点/列表的URL,并获取该SharePoint租户的访问令牌。

您现在可以使用以下端点获取此信息:

https://graph.microsoft.com/v1.0/sites/{site-Id}/lists/{list-Id}/columns
资料来源: