Forum Discussion
How many ways do we have to provision managed metadata column to SharePoint?
- May 13, 2019
daniela1995 Personally, I like to use Site Designs + Site Scripts to provision these columns out into environments. And you don't need feature receivers to attach them to term sets. However, there are many ways you can do this.
1. https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview
2. SPFx + Feature Framework (Not my first choice, unless you are deploying columns for a specific spfx solution. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/provision-sp-assets-from-package
3. PowerShell
Beau Cameron via code inside the SPFx webpart. Does that mean I have to place the webpart somewhere, open it, so the code would get executed and bind the columns, or is there an event receiver when the SPFx webpart is deployed that I can use to write this code? What I want to ask is, where would this code be placed in the spfx webpart?
daniela1995 What I mean by that is, when you add the web part on the page and you open up the web part properties, have the web part property configuration create the list for you (if it doesn't exist). That way, whenever the web part is actually used, it allows the user to select from an already deployed list, or the ability to generate a new one.
- daniela1995May 25, 2019Copper ContributorThank you!