Forum Discussion

tanmay111's avatar
tanmay111
Occasional Reader
Jan 07, 2026

physicalMemoryInBytes always returns 0 with called from ServiceNow

 

Hello,

 

I am trying to fetch physicalMemoryInBytes for Intune devices from ServiceNow. I tried calling this info by using below endpoints:

https://graph.microsoft.com/beta/deviceManagement/manageddevices('1111-2222-3333-abc4-55aa55bb55')?$select=id,physicalMemoryInBytes

https://graph.microsoft.com/beta/deviceManagement/manageddevices('1111-2222-3333-abc4-55aa55bb55')?$select=id,hardwareinformation,physicalMemoryInBytes

 

In both cases I'm getting below error error:

Failed to iterate on data stream: com.glide.transform.transformer.exceptions.InvalidPathException: Could not find path in stream: $.value

 

I referred to this Intune article but no luck:

https://techcommunity.microsoft.com/discussions/microsoft-intune/physicalmemoryinbytes-always-returns-0/3025721

 

Can someone help with this?

1 Reply

  • tanmay111​ 

    Your query is correct.

    Have you already consented to the "DeviceManagementManagedDevices.Read.All" permission for your user?
    Did you try to run the query without an ID and without $select?
    Good luck!

Resources