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