New command: update list item
See original GitHub issueUpdate 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:
- Created 6 years ago
- Comments:12 (12 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

That’s only necessary if you specify the
content-type: application/json;odata=verboserequest header. If you usecontent-type: application/json;odata=nometadatainstead, you don’t need to specifyListItemEntityTypeFullName.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 👍
Thorough findings and good progress! Nice work @mpowney! Looking forward to the PR! 💪