[英]How to get columns(fields) in sharepoint using microsoft graph api
When I call Microsoft graph API to return some of the properties,But I need the properties of the lack of some。当我调用微软图形 API 返回一些属性时,但我需要的属性缺少一些。
https://graph.microsoft.com/beta/sharepoint/sites/{site-id}/lists/{list-id}/fields
If the return type is the Choice I need to know the Choice list but I did not get because call right如果返回类型是选择我需要知道选择列表但我没有得到因为调用正确
You can get this information now by using the following endpoint :您现在可以使用以下端点获取此信息:
https://graph.microsoft.com/v1.0/sites/{site-Id}/lists/{list-Id}/columns
source : https://docs.microsoft.com/en-us/graph/api/resources/list?view=graph-rest-1.0来源: https : //docs.microsoft.com/en-us/graph/api/resources/list?view=graph-rest-1.0
This capability is not supported in the Microsoft Graph API at this time. Microsoft Graph API 目前不支持此功能。 In the mean time you can use the SharePoint REST API to retrieve the field information, including the choices available in a choice field.
同时,您可以使用 SharePoint REST API 来检索字段信息,包括选项字段中可用的选项。
There's more details available about how to use the SharePoint REST API to retrieve fields on MSDN here: https://msdn.microsoft.com/en-us/library/office/dn600182.aspx有关如何使用 SharePoint REST API 在 MSDN 上检索字段的更多详细信息,请访问: https : //msdn.microsoft.com/en-us/library/office/dn600182.aspx
To call the SharePoint REST API, you'll need to know the URL for the SharePoint site/list, and get an access token for that SharePoint tenant as well.要调用 SharePoint REST API,您需要知道 SharePoint 网站/列表的 URL,并获取该 SharePoint 租户的访问令牌。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.