Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

SharePoint hosted apps: How to get rootsite?

How can I get root web? var web = context.get_site().get_rootWeb(); would give my appweb root, but what about host web? I would like to do something like webs.itemAt(i).get_rootWeb();
0
tolppa
Asked:
tolppa
1 Solution
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
SP.Site.rootWeb - will get you the root web of the site collection
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now