CAML Query Builder Issues

CAML Query Builder Issues

1. By default, the CAML query contains <Query>. If you include <Query>, the query will return all items in the list. To apply the query, remove <Query> and </Query>. For example, remove the "Query" tags like this:

<Query><OrderBy><FieldRef Name='Sequence'/></OrderBy></Query>

2. The "copy to clipboard" option includes double quotes which results in the error: CS1002: ; this is what is expected:

<OrderBy><FieldRef Name="Sequence"/></OrderBy>

To fix this issue, replace the double quotes with single quotes, like this:

<Query><OrderBy><FieldRef Name='Sequence'/></OrderBy></Query>



The original article was written by Jayant.
Leave a Comment
  • Please add 6 and 4 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Richard Mueller edited Revision 3. Comment: Replace RGB values with color names in HTML to restore colors

  • Craig Lussier edited Revision 1. Comment: added en-US to tags and title

Page 1 of 1 (2 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Craig Lussier edited Revision 1. Comment: added en-US to tags and title

  • Richard Mueller edited Revision 2. Comment: Removed (en-US) from title

  • Richard Mueller edited Revision 3. Comment: Replace RGB values with color names in HTML to restore colors

Page 1 of 1 (3 items)