sharepoint - Can we query and fetch data from LIST between different subsites using CAML Query.? -


have list created under 1 site, can same list used fetch data other site using caml query.?

eg:

consider list "xxx" created under sitepages/aaa/lists/

can access list "xxx" other site i.e sitepages/bbb/

to summarize, possible access list across parent , child sites, vice-versa.

thanks in advance

yes it's possible. condition have same domain (for example http://mydomain.com/sitepages/aaa/ , http://mydomain.com/sitepages/bbb/).

then, sharepointplus library (http://aymkdn.github.io/sharepointplus/symbols/%24sp%28%29.list.html#.get) javascript api (if on http://mydomain.com/sitepages/aaa/* site) :

$sp().list("listname","http://mydomain.com/sitepages/bbb/").get({   fields:"title" }, function getdata(data) {   (var i=0; i<data.length; i++) console.log(data[i].getattribute("title")); }); 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -