Hi guys,
I am querying the QueueItemEvents in our on-premise Swagger UI.
When I use a simple $filter=Status eq ‘Successful’ there is a hit with code 200.
But when I try to filter with a string function like $filter=contains(Timestamp,‘2019-12’) to get only events from December 2012 it gives a code 400 with body:
{
“message”: “Invalid OData query options.”,
“errorCode”: 1000,
“resourceIds”: null
}
What am I missing?
3 Likes
bcorrea
(Bruno Correa)
January 16, 2020, 8:56pm
2
can you really use contains for a date field tho? also i think dates must be like ```
‘2019-12-01T09:13:28’
Adrian_Star
(Adrian Starukiewicz)
January 17, 2020, 5:55am
3
@zweerk01 ,
Try this:
$filter = Timestamp gt 2019-12-01T00:00:00.00Z and Timestamp lt 2019-12-31T00:00:00.00Z
You can use the following function operators (with examples):
Source:
17 Likes
@bcorrea It is not a date field. The model describes the field as string.
@Adrian_Star Your custom timestamp filter worked. I tried it before but with the single quotation marks like this: ‘2020-01-17T07:22:33.424Z’. Thanks!
1 Like
bcorrea
(Bruno Correa)
January 20, 2020, 1:13pm
6
isnt uipath using odata v2.0 tho?
Adrian_Star
(Adrian Starukiewicz)
January 23, 2020, 6:10pm
7
I’m not fluent in this. I’m still learning.
1 Like
system
(system)
Closed
January 29, 2020, 9:24am
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.