Forum Discussion
eliasrodeloso
Sep 06, 2022Copper Contributor
Query for device group failing on creation
I'm trying to create device groups to eventually create a Job with this particular device group to send a reboot command to all the devices in it. I'm using the IoT Central API REST for this with the...
AvneetSinghMSFT
Microsoft
Sep 07, 2022Hi Elias, thanks for reaching out. Please note that we do not yet support the IN operator in the query; however, you can use the eq within your query to achieve this. For example: ($id eq '' OR $id eq ''). We will look at add support for this in a future release.
- eliasrodelosoSep 07, 2022Copper Contributor
AvneetSinghMSFTHey, I tried this, but it doesn't work, it says that the eq token is not a valid token, also if I try this grouped and this was the response: `The provided filter is not valid. A device group filter can only reference properties and cannot contain nested conditions`. Worth mentioning I'm not using this for only 2 devices, this may have multiple devices. What is kind of frustrating though, is that you add this on your documentation, if you're not supporting this yet, please make the clarification there.