简体   繁体   English

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

[英]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.

相关问题 如何使用 Microsoft Graph 获取 SharePoint 在线组 API - How to get SharePoint online Groups using Microsoft Graph API 使用 Microsoft Graph API 更新与内容类型关联的 SharePoint 字段 - Update SharePoint fields associated with Content Type using Microsoft Graph API 如何使用 Microsoft Graph 或 SharePoint API 获取每个 SharePoint 站点的大小? - How to get the size of each SharePoint site using Microsoft Graph or SharePoint API? 如何使用 Microsoft Graph API 和 Graph Client 添加 SharePoint 选项卡? - How to add a SharePoint tab using Microsoft Graph API and Graph Client? 如何使用 Microsoft Graph API 更新 SharePoint 列表中人员或组列的值? - How do I update the value of Person or Group columns in SharePoint lists using the Microsoft Graph API? 尝试使用Sharepoint和Microsoft Graph api获取配置文件信息 - Trying to get profile info using Sharepoint and Microsoft Graph api 使用Microsoft Graph API获取SharePoint文件夹和文档 - Get SharePoint folders and docs using Microsoft Graph API 使用microsoft graph api获取sharepoint日历事件的重复数据? - Get recurrence data of sharepoint calendar events using microsoft graph api? 使用 Microsoft Graph API 从 SharePoint 在线获取文件 - Get a file from SharePoint Online using Microsoft Graph API 如何在 Microsoft Graph API 中使用过滤器来获取 SharePoint 项目? - How to use filter in Microsoft Graph API to get SharePoint items?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM