Geeks With Blogs
Reidar Husmo SharePoint from the trenches May 2013 Entries
"This functionality is unavailable for fields not associated with a list"
I wanted to set the default termset node of a taxonomy field in a content type in a list. (…the field should have different defaults depending on the type of library, but that's not important right now) So. Easy. Get the list, get the content type, get the field, set the default. What could be easier? var list = web.Lists.TryGetList("Docum... // obvious "if"s removed var contentType = list.ContentTypes["CT1"]; var field = contentType.Fields.GetField... as TaxonomyField; ......

Posted On Thursday, May 30, 2013 10:58 AM

Copyright © Norgean | Powered by: