1

I am retrieving my list items using the current time, but my code is retrieving nothing. Please anyone help me out on this.

Here is my CAML code:

camlQuery.set_viewXml("<View><Query><Where><Gt><FieldRef Name='ScheduleTime'/><Value Type='Choice'>"+hr+"</Value></Gt></Where></Query><RowLimit>10</RowLimit></View>");
2

1 Answer 1

0

You are comparing Time values in a choice field so might be the issue of some date format i guess.

Could you please try first getting result using CAML query builder through UI?

CAML Query Builder

It lets you easily build CAML queries through UI. You can trial and error with various values and once you get desired output, you can use that in your code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.