3

My clients want my SPFX web part in many sub sites. For this, I have to add the app to each subsite. Is there a way to add the SPFX web part app at the top level and I should be able to add web part of that app in all subsite. something like global access.

Please help me with this whether it is possible or not.

3

Hi all I got the answer from Sharepoint git site.

SPFX new release has the tenant-scoped deployment feature.

If you are deploying the app with this method, then no need to add the app to any site collection. The web part will be directly available for all the sites.

Below are the git hub and tutorial link.

https://github.com/SharePoint/sp-dev-docs/issues/849#issuecomment-328815450

https://dev.office.com/sharepoint/docs/spfx/tenant-scoped-deployment

  • That's great. Didn't knew it applied to sub sites as well. A very welcome feature. – Heinrich Ulbricht Sep 12 '17 at 14:07
1

To my knowledge this out-of-the box is not possible.

If I were to build this today the following two pieces would come in handy:

Workaround for detecting new sub sites, each a complete solution:

  • create a provisioning process for sub sites that is under your control - add the add-in as part of the process (maybe you can hook into the "Create subsite" link)
  • create a "timer job" like piece of code in Azure polling for new sub sites - add the add-in if one is found

Time consuming. If somebody knows easier ways please chime in.

  • 1
    As Raghavendra pointed out, we released the tenant-wide deployment feature a short while ago. If you don't need to execute feature XML on a specific site to use the webpart, you can make it available everywhere. – PatMill_MSFT Sep 12 '17 at 17:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.