Hey Lou... :)
$filter=contains(serialNumber,'011138765157')
is the right way to do this.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I cannot seem to get filter\select to work.
can you tell me if they are supported on this endpoint?
What I am trying to do is query for a specific serial, or userprincipalname. As it stands today I have to get the initial 1k devices then page through for the rest, then do client side filtering to extract the machine I want. I would rather be able to filter api side and send over a specific serial or UPN to check to see if there is a corresponding device.
So for example something like this:
I also tried with quotes:
https://graph.microsoft.com/beta/xxx/deviceManagement/windowsAutopilotDeviceIdentities?$filter=serialNumber eq '82NAAA'
also tried with an escape on the $ in filter which sometimes will mess up a web call:
All of the above fail with error 400 bad requests.
Hey Lou... :)
$filter=contains(serialNumber,'011138765157')
is the right way to do this.
I spoke with the developer for that feature, and they said that contains was the only supported filter option. eq wasn't supported. I hear you Søren that there may be conditions where that would result in multiple returned objects, but currently the code doesn't implement the eq condition.
Dave