question

developersp1-9584 avatar image
0 Votes"
developersp1-9584 asked ·

Rest API Batch Update

Currently, I'm passing Item Id into Rest to update a single list item.

But is there any way to update multiple list items together in one request ?

Is this possible ?

office-sharepoint-server-development
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Jerryzy-MSFT avatar image
1 Vote"
Jerryzy-MSFT answered ·

Hi @developersp1-9584 ,

Yes, there is a BatchUtils library in GitHub which could support bacth update in SharePoint Online(SharePoint On-Premise 2016 or later On-Premise version):

BatchUtils.ts

You can save as the library as .js file and store into a library, then use the code snippet below:

76072-snipaste-2021-03-10-10-22-22.png

76073-code.txt

Reference:

SharePoint Online Batch API Request For Bulk CRUD Operation

Thanks
Best Regards



·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.