I have a list named "St. John's Calendar". How do I use it with SP.CamlQuery? I'm thinking I need to encode it in some way, but nothing so far has worked.
Something like:
_api/web/lists/getbytitle('St. John's Calendar')/getitems
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityWorks with double '
_api/Web/Lists/GetByTitle('St. John''s Calendar')/
You should switch back to Id in that case.
For example: First query
https://siteurl/_api/web/lists
and note down the guid of the list, then use
https://siteurl/_api/web/lists('6678c589-4a6b-4625-be62-ad5ddf97f1a7')/items
will give you the items
St. John's Calendar
must be causing the problem. So, try using List id.
– Amit Tyagi
Nov 24 '14 at 21:50
If you are trying to get all the items of the list. You can try _api/web/lists/getbytitle('St. John's Calendar')/items
.
Refer here for other options for getbytitle
method.
_api/web/lists/getbytitle("St. John's Calendar")/getitems
instead? – Jordan Nov 24 '14 at 21:39How do I use it with the REST api?
What exactly do you want to do with the list ? – Amit Tyagi Nov 24 '14 at 21:39