Forum Discussion

bob-lamaster's avatar
bob-lamaster
Copper Contributor
Jun 01, 2022
Solved

How to get objectID from device name

I've been working on a project that uses a custom connector in Power Automate to send API calls to Power Graph to get data on users and devices in Microsoft Intune.  The Power Automate custom connect...
  • bob-lamaster's avatar
    Jun 01, 2022
    I believe I've found it. In the Power Automate custom connector, I can use the query https://graph.microsoft.com/v1.0/devices/?$filter
    This will create a parameter when the API request is submitted that I can specify as
    displayName eq 'LAPTOP.JOHNSMITH'

Resources