API Calls To Get Queue Items Returns Unreliable Results

Issue Description: The API calls to retrieve queue items, with a filter is unreliable, as in it returns a blank csv files multiple times, with no fixed pattern. This is especially valid for retrieval of large number of items.


Root Cause: Status ID is not being properly recognized, must use actual Status value.


Resolution: It seems that the ID is not being used correctly and the actual status name must be specified:

/odata/QueueDefinitions(100)/UiPathODataSvc.Reports?%24filter=QueueDefinitionId%20eq%20100%20and%20Status%20eq%20'Deleted'%20or%20Status%20eq%20'Abandoned'

Also, when filtering by 2 statuses, OR must be used instead of AND, otherwise it will try to search queue items that have both statuses at once, thus returning an empty list.