feature/spo-listitem-set resolves office365-cli issue #271#454
feature/spo-listitem-set resolves office365-cli issue #271#454
Conversation
|
This PR is a clean version of the previous PR I submitted - adds a new cmd to update list items: #271 |
|
Awesome! Thanks @mpowney! |
|
Was just about to review it @mpowney 😉 All good now? 😄 |
|
Yes just a minor update, all good |
|
I'm getting a Update: I'm getting the error both when using the systemUpdate as well as when performing a regular update on a list item in a site collection when connected to the tenant admin. |
|
Hey @waldekmastykarz I've tried the following to reproduce the error you're getting:
All of the above work OK for me. Can you provide more detail, e.g. the actual command(s) causing the error? |
|
Just re-reading your previous comment @waldekmastykarz - are you connecting to the tenant admin site i.e. https://-admin.sharepoint.com - if so, what list are you updating there? |
|
Sorry for the confusion @mpowney. I am connecting to the tenant admin site in the CLI ( Connecting to the tenant admin site is how I typically use the CLI because it doesn't require me to reconnect whenever I need to use a command that requires tenant admin site connection. Hope this clarifies it a bit. |
|
I think that's fixed now @waldekmastykarz. I'm on my way back from SPC18, and I literally performed the debugging, commit and push from 32kft, above Hawaii in the Pacific! |
|
Brilliant! In that case it's going to work for sure. Thanks! Hope you had a nice event. |
|
Hashtag-spc18inspiration |
|
When I'm trying to update a list item using the Command: o365 spo listitem set --listId a3815d57-23cb-4c5f-a0fb-455c43ae2a9d --id 1 --webUrl https://m365x526922.sharepoint.com/sites/team-a --PnPCity "Tampa, FL"Could you see if you can repro it @mpowney? Updating item using |
bf72d59 to
39660b9
Compare
|
Hey @waldekmastykarz, I've reproduced the error and fix is now committed. Also re-based with dev. |
|
Awesome! Thanks @mpowney! |
|
The issue with I'm connected to the tenant admin site and trying to update an item in a regular site collection. |
waldekmastykarz
left a comment
There was a problem hiding this comment.
The command returns error when using the --systemUpdate option and connected to the tenant admin site.
feature/spo-listitem-set resolves office365-cli issue pnp#271
39660b9 to
1cc4b65
Compare
|
Hey @waldekmastykarz thanks for testing that scenario, I've fixed the getRequestDigest call to use getRequestDigestForSite instead when --systemUpdate is called. It looks like it's working as expected now. |
|
Thanks @mpowney! Will check it out! |
|
Went through the PR and it's looking perfect. Included in the upcoming release. Thanks @mpowney! |
|
Merged manually |
feature/spo-listitem-set all changes to new branch from upstream dev