question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New command: update list item

See original GitHub issue

Update the specified list item

  • command: spo listitem set -w|--webUrl <webUrl> -l|--listId [listId] --listTitle [listTitle] -i|--id <id> -c|--contentType [contentType] --systemUpdate ...
  • webUrl: The URL of the site where the list from which to retrieve items is located
  • listId: The ID of the list from which to retrieve items
  • listTitle: The title of the list from which to retrieve items
  • contentType: The name or the ID of the content type to associate with the new item
  • systemUpdate: Update the item without updating the modified and modified by fields
  • …: this command should allow using unknown properties. Each property corresponds to the list item field that should be set when updating the item. Standard properties such as webUrl, listId, listTitle, option, verbose and debug should be excluded from the SharePoint request
  • either listId or listTitle must be specified to retrieve the list, but not both
  • requires connection to a SharePoint site

For more information see the Set-PnPListItem cmdlet

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
waldekmastykarzcommented, Apr 9, 2018

The /items() endpoint requires us to determine the ListItemEntityTypeFullName as per the docs here:

That’s only necessary if you specify the content-type: application/json;odata=verbose request header. If you use content-type: application/json;odata=nometadata instead, you don’t need to specify ListItemEntityTypeFullName.

I agree with you that ideally we should use ValidateUpdateListItem(). Let me check what can be done with regards to documenting the API.

Thanks for the research and detailed findings and I appreciate the effort you put into this 👍

0reactions
waldekmastykarzcommented, May 1, 2018

Thorough findings and good progress! Nice work @mpowney! Looking forward to the PR! 💪

Read more comments on GitHub >

github_iconTop Results From Across the Web

New command: update list item · Issue #271 - GitHub
For adding items, my investigation shows modern UI uses AddValidateUpdateItemUsingPath - when both list items are created with no folders ...
Read more >
How to Update List Items in SharePoint using PowerShell?
This blog post will show you how to use PowerShell to update list items quickly. Let's get started! The basic syntax for updating...
Read more >
Update-List (Microsoft.PowerShell.Utility)
The Update-List cmdlet adds, removes, or replaces items in a property value of an object and returns the updated object. This cmdlet is...
Read more >
Add & Update a Secondary SharePoint list using Power ...
This video is about how you can copy and update secondary SharePoint List item using Power Automate. the flow will copy item from...
Read more >
2013 - batch command to update SharePoint list item using ...
I am new to SharePoint and i need help to update lookup field, multi line of text field and date field from one...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found