BMS API: When using a filter in a call with Date / Time object I get an Error 400.

Question: I am trying to use a filter on dates in the API call and I get a status failed response; how can I resolve this? 

"A binary operator with incompatible types was detected. Found operand types 'Edm.DateTime' and 'Edm.String' for operator kind 'LessThan'".

Resolution: This occurs when Edm.String is used; use the Edm type datetime instead.


1. https://serverurl/api/servicedesk/tickets/timelogs?$filter=StartDate lt '2019-01-21T21:44:45.257​'

2. $filter=OpenDate eq DateTime'2018-09-21T21:44:45.257

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Contact us