简体   繁体   中英

SharePoint List Item Update - Concurrency Using REST API

I'm using REST API for updating the SharePoint list item (Counter). In my code on form load I'm fetching the count from list and increment to 1 & on submit button click I'm updating the value of count. Till here I have achieved.

Problem arises , If two users submit the form at the same time, then counter value is incremented by 1 instead to 2 in the list.

Checked with etags . But I found that during post if etag doesn't match with get request etag then error will be thrown.

Is there way to achieve this functionality using REST API also incrementing the counter properly , if more than 3-4 users submit the form ?

SharePoint不会公开事务管理器,因此您可以在一个原子事务中将多个其余操作分组。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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