msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
Get-MgSiteListItem (v2.25.0) does not return values for fields of type Number
Describe the bug
Get-MgSiteListItem returns all field values, but for fields of number type it shows as blank. Tested with multiple lists, multiple fields.
Expected behavior
Number values are returned as well.
How to reproduce
(Get-MgSiteListItem -ListId {List ID} -SiteId {Site ID} -ListItemId {Item ID}).Fields.AdditionalProperties | Format-List Use a list that has fields of number type.
Tried the same with a regular Graph API http request, it works, only broken in PowerShell https://graph.microsoft.com/v1.0/sites/{SiteID}/lists/{ListID}/items/{ItemID}?$expand=fields
SDK Version
2.25.0
Latest version known to work for scenario above?
No response
Known Workarounds
none
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
Just noticed that I'm not the only one having this issue: https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/1126
Same problem in v2.26.1 Did you find an alternative way to get number fields?
Hi all, Unfortunately I am not able to reproduce this issue. Attached are my screenshots.
It works well with the latest release (2.26.1), not unless I am missing something concerning this issue.
Hi all, Unfortunately I am not able to reproduce this issue. Attached are my screenshots.
![]()
It works well with the latest release (2.26.1), not unless I am missing something concerning this issue.
Weird! Am I missing something here?
@5w4910rd please confirm from the portal if that field has a value.
I can confirm that the issue still exists in 2.26.1. I also see that you're entering the site ID in a different format than I do, not sure if it's related, my site ID is just a GUID.
I too can confirm Number not returning value
It works well with the latest release (2.26.1), not unless I am missing something concerning this issue.