Monthly Archives: July 2010

Managed Metadata update terms via timer jobs

Hi   You need to have patience when you update a term in a termstore programmatically.   TaxonomySession taxonomySession = new TaxonomySession(properties.OpenSite());TermStore mainTermStore = taxonomySession.TermStores[0];Term ParentTerm = mainTermStore.GetTerm(ParentTermId);TermCollection childTerms = ParentTerm.GetTerms(oldTerm, intLCID, true, StringMatchOption.ExactMatch, 1, true);Term modifyTerm = childTerms[0];modifyTerm.Name = newTerm;mainTermStore.CommitAll(); … Continue reading

Posted in Sharepoint | Leave a comment