SPFX Extensions deployment/scope questions

%3CLINGO-SUB%20id%3D%22lingo-sub-92835%22%20slang%3D%22en-US%22%3ESPFX%20Extensions%20deployment%2Fscope%20questions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-92835%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20starting%20to%20explore%20building%20SPFX%20extension%20(with%20eventual%20goal%20to%20do%26nbsp%3Ba%20menu%20in%20the%20header%20for%20a%20site%20collection).%20%26nbsp%3BI've%20followed%20the%20HelloWorld%20intro%20and%20deployed%20to%20my%20Dev%20tenant.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20documented%20anywhere%20yet%20how%20to%20make%20it%20scoped%20to%20a%20Site%20(Site%20Collection)%20as%20opposed%20to%20a%20Web%20(individual%20site)%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20based%20on%20my%20reading%2C%20it%20gets%20packaged%20and%20installed%20as%20an%20actual%20App.%20%26nbsp%3BIn%20the%20event%20I%20do%20scope%20it%20to%20a%20Site%20Collection%2C%20does%20it%20matter%20which%20site%20the%20App%20is%20loaded%20to%20to%20activate%20the%20CustomAction%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMeaning%20if%20I%20install%20it%20on%20a%20subsite%2C%20will%20the%20extension%20get%20applied%20to%20the%20root%20site%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-92835%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-97048%22%20slang%3D%22en-US%22%3ERe%3A%20SPFX%20Extensions%20deployment%2Fscope%20questions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-97048%22%20slang%3D%22en-US%22%3EI%20think%20not.%20framework%20is%20currently%20making%20use%20of%20the%20'add-in'%20deployment%20model%20which%20is%20well%20explained%20here%20%3CA%20href%3D%22https%3A%2F%2Fblogs.msdn.microsoft.com%2Fvesku%2F2015%2F11%2F20%2Fautomating-add-inapp-installation-to-sharepoint-sites-using-csom%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.msdn.microsoft.com%2Fvesku%2F2015%2F11%2F20%2Fautomating-add-inapp-installation-to-sharepoint-sites-using-csom%2F%3C%2FA%3E%3CBR%20%2F%3Eif%20you%20want%20to%20push%20the%20app%20to%20multiple%20sites%20you%20will%20need%20to%20write%20some%20automation%20to%20do%20that%3C%2FLINGO-BODY%3E
Highlighted
Valued Contributor

I am starting to explore building SPFX extension (with eventual goal to do a menu in the header for a site collection).  I've followed the HelloWorld intro and deployed to my Dev tenant.

 

Is it documented anywhere yet how to make it scoped to a Site (Site Collection) as opposed to a Web (individual site)?

 

So based on my reading, it gets packaged and installed as an actual App.  In the event I do scope it to a Site Collection, does it matter which site the App is loaded to to activate the CustomAction?

 

Meaning if I install it on a subsite, will the extension get applied to the root site?

 

 

1 Reply
Highlighted
I think not. framework is currently making use of the 'add-in' deployment model which is well explained here https://blogs.msdn.microsoft.com/vesku/2015/11/20/automating-add-inapp-installation-to-sharepoint-si...
if you want to push the app to multiple sites you will need to write some automation to do that