SharePoint 2010 REST API多个添加,更新和删除列表项. [英] SharePoint 2010 REST API multiple add, update and delete list items.
问题描述
亲爱的
我正在将SharePoint 2010与REST API一起使用.我可以玩单个物品.
I am using SharePoint 2010 with REST API. I can play with single item.
我想添加,更新和删除多个项目.
I want to add, update and delete multiple items.
任何人都可以告诉我该怎么做吗?
Can anyone please tell me how do this ?
谢谢
Harish Patil
Harish Patil
推荐答案
Harish,
Hi Harish,
SharePoint Online(以及本地SharePoint 2016及更高版本)和Office 365 API实现OData
SharePoint Online (and on-premise SharePoint 2016 and later) and the Office 365 APIs implement the OData
批处理查询选项.
但是,对于本地SharePoint 2010,该选项不可用.
However, for SharePoint 2010 On-premise, the option is unavailable.
作为一种解决方法,您需要使用循环来做到这一点.
As a workaround, you need to use loop to do that.
有两个类似的线程供您参考:
There are two similar threads for your reference:
https://sharepoint.stackexchange.com/questions/72767/create -multiple-items-via-rest-api
温迪
这篇关于SharePoint 2010 REST API多个添加,更新和删除列表项.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!