microsoftgraph / microsoftgraph/msgraph-sdk-powershell
Get-MgSiteListItem (v2.25.0) does not return values for fields of type Number
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 898
- Forks
- 230
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 31
Description
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_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with Get-MgSiteListItem against a list containing number-type fields, then inspect the returned Fields.AdditionalProperties. Compare the PowerShell result with the documented Graph API request using $expand=fields. Done means numeric field values are returned by the cmdlet as they are by the HTTP request, with suitable regression coverage if the repository identifies the relevant test location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- api, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100