Skip to content

Update item data (patch) but nothing happens #1253

Answered by jansenbe
nepgya2803 asked this question in Q&A
Discussion options

You must be logged in to vote

@ngqtrieu99 : that code should work although please fix the following by adding an .AsRequested() here:

...
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 UpdateOverwriteVersionAsync (see https://pnp.github.io/pnpcore/using-the-sdk/listitems-intro.html#updating-list-items) method

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nepgya2803
Comment options

@jansenbe
Comment options

Answer selected by nepgya2803
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants