Forum Discussion
Venkata Ratnam Vemula
Oct 16, 2017Brass Contributor
Use pnp js to query other sharepoint sites using Plain Javascript
I am trying to query a document library from a other sharepoint site (Not a Subsite) in the same tenant, but not able to find a way I can query as follows to retrieve from the current sharepont site...
John Aage Andersen
Oct 16, 2017Iron Contributor
You should be able to specify which site you want to connect to - this is what I found:
var w = new $pnp.Web("{Site Url}");
in the Basic Operations page:
https://github.com/SharePoint/PnP-JS-Core/wiki/Basic--Operations
Hope this helps you on the way :) John
var w = new $pnp.Web("{Site Url}");
in the Basic Operations page:
https://github.com/SharePoint/PnP-JS-Core/wiki/Basic--Operations
Hope this helps you on the way :) John