on-internet
← Community

Select-Object Data Failure From Succesful Invoke-RestMethod

Stack Overflow ·

I have a working call to a rest service using Invoke-RestMethod -Uri https://.... The call's result, in JSON, can be piped the data to Format-Table -Property ... and data is shown. But when Select-Object -Property ... is used after the invoke with the same parameters, the PSObject has the columns but no data for them. If I use a different webservice the call will work. What could be causing the PSObject to not show any values? Working Example on public rest web services Invoke-RestMethod -Uri https://jsonplaceholder.typicode.com/todos/1 | Select-Object -Property title Result @{title=delectus a

Comments

Sign in or sign up to comment and upvote.

No comments yet.