【发布时间】:2020-02-11 23:59:44
【问题描述】:
当我调用Microsoft graph API返回一些属性时,我需要缺少一些属性。
https://graph.microsoft.com/beta/sharepoint/sites/{site-id}/lists/{list-id}/fields
如果返回类型是Choice 我需要知道Choice 列表但我没有得到因为调用正确
【问题讨论】:
标签: sharepoint microsoft-graph-api
当我调用Microsoft graph API返回一些属性时,我需要缺少一些属性。
https://graph.microsoft.com/beta/sharepoint/sites/{site-id}/lists/{list-id}/fields
如果返回类型是Choice 我需要知道Choice 列表但我没有得到因为调用正确
【问题讨论】:
标签: sharepoint microsoft-graph-api
您现在可以使用以下端点获取此信息:
https://graph.microsoft.com/v1.0/sites/{site-Id}/lists/{list-Id}/columns
来源:https://docs.microsoft.com/en-us/graph/api/resources/list?view=graph-rest-1.0
【讨论】:
Microsoft Graph API 目前不支持此功能。同时,您可以使用 SharePoint REST API 来检索字段信息,包括选项字段中可用的选项。
这里有更多关于如何使用 SharePoint REST API 检索 MSDN 上的字段的详细信息:https://msdn.microsoft.com/en-us/library/office/dn600182.aspx
要调用 SharePoint REST API,您需要知道 SharePoint 网站/列表的 URL,并获取该 SharePoint 租户的访问令牌。
【讨论】: