Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add Enterprise Keyword field into List using CSOM
private static void AddTaxkeywordFieldInList(List list)
{
var ctx = list.Context as ClientContext;
var taxKeywordField = ctx.Site.RootWeb.Fields.GetByInternalNameOrTitle("TaxKeyword");
var taxKeywordFieldInList = list.Fields.Add(taxKeywordField);
ctx.ExecuteQuery();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.