繁体   English   中英

获取文档库文档模板

[英]Get Document Library document Templates

一旦您在 Sharepoint 文档库中定义了额外的文档模板,如何通过 MS Graph 检索它们?

关于 MS 文档模板存储在名为“Forms”的文件夹中( https://support.microsoft.com/en-us/office/set-a-custom-template-for-a-sharepoint-library-8e0177eb-46bd- 4346-9998-330c32733c25 )。 但是这个文件夹既不能通过ms graph列出,也不能通过ms graph的路径浏览。 所以我的问题是如何访问这些文档模板?

SharePoint 站点列表contentType有关系。

ContentType资源类型具有属性documentTemplate ,这应该是您正在寻找的。

也许最好的开始方式是致电 Graph API 并获取您的站点或列表的contentType

GET https://graph.microsoft.com/v1.0/sites/{site_id}/contentTypes
GET https://graph.microsoft.com/v1.0/sites/{site_id}/contentTypes?$select=id,documentSet,documentTemplate
GET https://graph.microsoft.com/v1.0/sites/{site_id}/lists/{list_id}/contentTypes
GET https://graph.microsoft.com/v1.0/sites/{site_id}/lists/{list_id}/contentTypes?$select=id,documentSet,documentTemplate

资源:

内容类型

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM