Skip to main content
2 of 2
edited tags

Accessing Host Web from APP Web of tenant scoped apps

In SPO, we have created a custom action in the sharepoint ribbon using the SharePoint hosted app. We would like to make this custom action available in all the site collections. To achieve this we have installed the app in the APP Catalog site with tenant scoped deployment. Because of this, we are having trouble with these 2 scenarios in all the site collections where this app is deployed automatically .

  1. The custom action is visible only in the app catalog site collection and not in any other sites. Is there any possibility to ensure that the custom action is deployable to all site collections...???
  2. When we open the default.aspx page of the app in the any other site collection, by default the host web is always the app catalog when accessed using ECMA. Even if we manually try to create a client context by reading the HostUrl query string parameter, it gives unquthorized exception. Is it possible to create client contexts for the actual site collection url in this case...???