Tuesday, July 14, 2015

SharePoint REST do support Query variables!

image

From my list at http://techmikael.blogspot.no/2014/05/s15e03-query-variables-constant-trouble.html you can use the following variables in a REST query:

  • Site
  • SiteCollection
  • URLToken
  • Request (not useful as it return _vti_bin/client.svc)
  • User
  • Today
  • SearchBoxQuery
  • CurrentDisplayLanguage
  • CurrentDisplayLCID

Basically all which does not pull in a value from a specific context item.

How?

Fill in your variables in the “Query Template” field of the SharePoint 2013 Query Tool and you get the syntax. Get the code and compile yourself and you will see the final expansion as well.