Skip to content

Unable to get List Item Id value in o365 spo listitem list command #1762

Answered by garrytrinder
sprider asked this question in General
Discussion options

You must be logged in to vote

The issue is specific to PowerShell implementation of ConvertFrom-Json rather than the CLI, see the below output from my tests.

ConvertFrom-Json appears to be unable to handle properties with the same name but have different casing, adding the -AsHashtable switch works around the issue in PowerShell Core, however I do know that -AsHashtable is not present in PowerShell 5 which is bundled with the Windows OS, so users will have to use the Replace workaround as you have already stated, which is less than ideal.

We should consider removing duplicate properties from our output in this case.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sprider
Comment options

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