Update item data (patch) but nothing happens #1253
-
I'm new to pnp core. My goal is to update the item data (user data), after going through many documents, threads and discussion, here is what I got. Even though the debug console show that a patch request was sent, but the item still hasn't been changed
And here is my calm query
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@ngqtrieu99 : that code should work although please fix the following by adding an ...
foreach (var item in myList.Items.AsRequested())
... If that's not working check the payload of the patch request to ensure the field in included. Alternatively try the |
Beta Was this translation helpful? Give feedback.
@ngqtrieu99 : that code should work although please fix the following by adding an
.AsRequested()
here:If that's not working check the payload of the patch request to ensure the field in included. Alternatively try the
UpdateOverwriteVersionAsync
(see https://pnp.github.io/pnpcore/using-the-sdk/listitems-intro.html#updating-list-items) method