Forum Discussion
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:
Can someone help with this?
1 Reply
- Bogdan_GuineaIron Contributor
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!