ROQL to fetch incident created between specific time
How can i get all the incidents created between a particular time using Roql
example start Time 22-Feb-2017 :00:00 and end time 22-Feb-2017 :24:00
I tried the below query and i am not getting the response as expected
SELECT * FROM Incident WHERE Incident.FileAttachments.FileAttachmentList.FileName IS NOT NULL AND CreatedTime >= '2017-02-22T00:00:00Z' AND CreatedTime <= '2017-02-22T24:00:00Z'