Microsoft graph api 使用graph api获取sharepoint项目时,如何筛选内容类型Id?
我想从SharePoint列表中获取具有特定内容类型的所有项目 到目前为止我已经试过了Microsoft graph api 使用graph api获取sharepoint项目时,如何筛选内容类型Id?,microsoft-graph-api,odata,sharepoint-online,Microsoft Graph Api,Odata,Sharepoint Online,我想从SharePoint列表中获取具有特定内容类型的所有项目 到目前为止我已经试过了 列出/{myList}/items?$filter=contentType/id eq'{myCTId}' 列出/{myList}/items?$filter=contentType/name eq'{myCTName}' 列出/{myList}/items?$filter=startswith(contentType/name,{myCTName}) 以上这些似乎对我都不起作用,所有这些都导致了一个普遍
- 列出/{myList}/items?$filter=contentType/id eq'{myCTId}'
- 列出/{myList}/items?$filter=contentType/name eq'{myCTName}'
- 列出/{myList}/items?$filter=startswith(contentType/name,{myCTName})
"code": "generalException",
"message": "An unspecified error has occurred.",
有人对如何实现这一点有什么想法/建议吗?到目前为止,
列表/{listid}/items
端点不支持筛选器,并且已经发出了uservoice。请将其升级,以便将来可以开发此功能。作为一种解决方法,您可以在自己的端对其进行筛选(编写代码)。截至目前,列表/{listid}/items
端点不支持筛选,并且已引发uservoice。请将其升级,以便将来可以开发此功能。作为一个工作环境,你可以在你的终端过滤它(写代码)。移动这个来回答。链接是死的“站点停用”看起来网站关闭了。它显然是永久关闭