msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

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

Open bgergoe opened this issue 9 months ago • 7 comments

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_

bgergoe avatar Feb 13 '25 10:02 bgergoe

Just noticed that I'm not the only one having this issue: https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/1126

bgergoe avatar Feb 17 '25 13:02 bgergoe

Same problem in v2.26.1 Did you find an alternative way to get number fields?

5w4910rd avatar Mar 17 '25 15:03 5w4910rd

Hi all, Unfortunately I am not able to reproduce this issue. Attached are my screenshots.

Image Image

It works well with the latest release (2.26.1), not unless I am missing something concerning this issue.

timayabi2020 avatar Mar 19 '25 08:03 timayabi2020

Hi all, Unfortunately I am not able to reproduce this issue. Attached are my screenshots.

Image Image 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?

Image

5w4910rd avatar Mar 19 '25 11:03 5w4910rd

@5w4910rd please confirm from the portal if that field has a value.

timayabi2020 avatar Mar 20 '25 06:03 timayabi2020

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.

bgergoe avatar Mar 20 '25 08:03 bgergoe

I too can confirm Number not returning value

los7702 avatar Apr 01 '25 14:04 los7702