简体   繁体   中英

How to change capitalization of a name in taxonomy using CSOM?

Does anyone know how to use CSOM to update a taxonomy item (ex. term group, term set) name capitalization? For example, there is one term group named 'kelvin', how to change it to 'Kelvin'?

Here is my code,

var termGroup = termStore.GetGroup(id);
context.Load(termGroup);
context.ExecuteQuery();

termGroup.Name = "Kelvin";
termStore.CommitAll();
context.ExecuteQuery();

There is no error or exception, but the name does not get updated.

Any help would be appreciated. Thanks!

Rename the term group to something else different and change back to the correct name with correct casing. I found out that you don't need to do this for Term set

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM