Introduction: Organization governance can allow the end users to add the terms to the term store. In the term set settings there is an option called "Submission policy" which is used to allow the end users to add the terms to the term set. The end users can add the terms to the term sets in the metadata column dialog box. In this article we will be seeing how to enable this option to add the terms to the term set by the end user using SharePoint object model and powershell. In part 1 I have explained how to set the submission policy through UI. Using SharePoint object model:
Steps Involved:
namespace SubmissionPolicy { class Program { static void Main(string[] args) { using (SPSite site = new SPSite("http://serverName:22222/sites/TestSite/")) { TaxonomySession taxonomySession = new TaxonomySession(site); TermStore termStore = taxonomySession.TermStores["MMS"]; Group group = termStore.Groups["Submission Policy Test"]; TermSet termSet = group.TermSets["Days of the week"]; termSet.IsOpenForTermCreation = true; termStore.CommitAll(); } } } }
Using powershell: Steps involved:
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: