0

With the following CAML query:

camlQuery.set_viewXml('<View><Query><Where><Geq><FieldRef Name=\'ID\'/>' + '<Value Type=\'Number\'>1</Value></Geq></Where></Query><RowLimit>100</RowLimit></View>');
  • What is the difference between using <Geg> and <Eq> in the above query?

  • Is this query assuming that there is a value in m list of 1 for the current ID? I am trying to understand what Value Type Number 1 means?

  • 1
    Hi @blachawk, could you please rephrase your 1st question ? For the second one, this query is looking for the first 100 elements that have the "ID" column with a value greater or equal then 1. – KhalilG Mar 6 '15 at 15:44
  • My bad - it's now updated. Thanks so far for the feedback! – klewis Mar 6 '15 at 15:47
  • Why the negative vote? this a good learning moment fo something that is not clearly explained in examples I have found online... – klewis Mar 6 '15 at 15:56
  • I don't know how it happened. I've fixed it. – KhalilG Mar 6 '15 at 15:58
0

Thanks @blachawk.

1- <Geq> means Greater than or equal and <eq> means equal.

2- this request is not assuming that there's an item with ID equal to 1. It's just looking for items which column ID has a value greater than or equal to 1, and it's looking for the first 100 elements that fulfill the last condition.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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