-
From what I understand, updating an IListItem can be done only using method IListItem.Update() (and its variants). But to perform this operation I need to have an instance of the IListItem which can be created only by requesting the item from db by LoadListDataAsStream or GetItemById. If I understand this correctly, it is done this way because PnP does version checks and possibly some other background operations. But for some specifics of my application, I don't need to do any version checks and need to have the update as fast as possible so I want to perform just one simple db update operation without loading the item first. Is there any way to do that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@m-urubek : currently this is not possible natively in PnP Core SDK, you can however write your logic with raw API calls (see https://pnp.github.io/pnpcore/using-the-sdk/basics-customapirequests.html#making-a-custom-spo-rest-request). To do an update you have to have the unique id or URI of the item to update. For example we use internally |
Beta Was this translation helpful? Give feedback.
-
I have figured it out. Following method works. Took me a few hours of going through source code.
|
Beta Was this translation helpful? Give feedback.
I have figured it out. Following method works. Took me a few hours of going through source code.