[英]Get Items from Multiple Sharepoint List at once By List Name using CAML Query without any join operation
I want to get items from multiple list of sharepoint at once using CAML query without any join operation.我想使用 CAML 查询一次从多个共享点列表中获取项目,而无需任何连接操作。 I have five list in sharepoint and while getting items from each list it's taking same amount of time as getting items from first list.
我在 sharepoint 中有五个列表,从每个列表中获取项目所花费的时间与从第一个列表中获取项目所花费的时间相同。 Therefore i want to get multiple list items at once to save that time.
因此我想一次获得多个列表项以节省时间。
For SharePoint online, you could use batch rest api.对于 SharePoint Online,您可以使用批处理休息 api。
https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/make-batch-requests-with-the-rest-apis#example-requests-and-responses https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/make-batch-requests-with-the-rest-apis#example-requests-and-responses
JavaScript demo . JavaScript 演示。
For on-premise, you could use SPSiteDataQuery对于本地,您可以使用SPSiteDataQuery
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.