Skip to content

Get-MgSiteListItem (v2.25.0) does not return values for fields of type Number #3123

@bgergoe

Description

@bgergoe

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_

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions