Problem: I’m having an issue getting the filter by RobotEnvironments to work when executing an http request to pull in all the Robots within a specific Environment.
Sample Endpoint used:
"/odata/Robots?$filter=RobotEnvironments eq 'Environment1'"
Response:
{"message":"An error has occurred.","errorCode":0,"resourceIds":null}
— I have verified that the Environment string used is accurate on my end.
Workaround: I am using the .Where() method to filter the JArray by the ‘RobotEnvironments’ json key after the http request.
So, I can go with my workaround, but am curious as to what I’m doing wrong when trying to use the filter parameter in the endpoint. - It’s probably simple.
Your guidance is appreciated!
Thanks.
Clayton M