I am trying to delete multiple items in a SharePoint list with the constraint that either all of the items should be deleted or none of the items should be deleted.
In short, I am looking to create more of a transactional behavior in SharePoint. I have tried using the ProcessBatchData()
function but it doesn't seem to fulfil my requirement. Is there, perhaps, another method that someone knows of to accomplish this goal?
For SharePoint object model, as mentioned in the comment would work. For SharePoint csom, you would call context's executequery method once after performing delete operations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With