Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How can I use CAML queries with the REST API?

$
0
0

This page shows how to retrieve list items for a specific CAML query, using the JavaScript Object Model:

http://msdn.microsoft.com/en-us/library/hh185007.aspx

How can I achieve the same result with the new REST (_api) interface?

For example, if I have a CAML expression like this:
var camlQuery=''<View><Query><Where><Geq><FieldRef Name=\'ID\'/><Value Type=\'Number\'>1</Value></Geq></Where></Query><RowLimit>10</RowLimit></View>''

How can I send this CAML expression to the server via the REST interface and get the matching items?


Christophe Humbert Path to SharePoint http://blog.PathToSharePoint.com User Managed Solutions http://UserManagedSolutions.com



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>