0

I have created a SharePoint Framework webpart and have been able to add it to the app catalog in our web application. I then can add it by manually clicking the "Add an App" link inside of a site collection but was hoping to find a way to programmatically add this app/webpart to multiple site collections.

Is there any options available to SharePoint On-Premise applications or is the only way to add a SPFx app to a site collection by manually doing so? Seems like there is plenty of discussion regarding SPO but unfortunately those discussions do not help with Sharepoint On-Premise.

Any help is appreciated.

  • 1
    There was somewhere a comment from a spfx developer that this feature will be only for SharePoint Online available and maybe (!) for SharePoint 2019 but defenitly not for SP2016 on premise. (The comment was somewhere here: docs.microsoft.com/en-us/sharepoint/dev/spfx/… unfortunately they changed the feedback system and it disappeared). – Oskar Apr 12 '18 at 12:00
  • Shame that the comments are no longer available, as well as sounding like no additional changes will come to Sharepoint Framework for 2016 On-Premise. – Joe W Apr 13 '18 at 16:06
0

Tick the box "Make this solution available to all sites in the organization" when adding the package to the app catalogue. This should make the web part tenant scoped.

To get this checkbox, you need "SkipFeatureDeployment": true in your package-solution.json like so:

"solution": {
  "name": "<web part name in app catalogue>",
  "id": "38862200-dfec-4997-a28d-2589df4fef16",
  "version": "1.0.0.0",
  "skipFeatureDeployment": true
}

Read more about tenant scoped solutions.

  • 1
    While I appreciate your response, that approach is specific to Sharepoint Online, and not Sharepoint 2016 (On-premise). If this approach was available to the On-Premise version, it would definitely get me what I am looking for. – Joe W Apr 12 '18 at 4:30
  • I'm only working with SPO, but I thought this might do the trick even on-prem. You did say "Any help is appreciated" so I gave it a shot. Obviously it didn't work. I'm sorry if I wasted your time. – Papageno Apr 12 '18 at 7:26

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.