Forum Discussion

Kolitha de Silva's avatar
Kolitha de Silva
Copper Contributor
Aug 22, 2016

Set default value taxonomy field - published from CT hub - spo

Hi,

I am looking for sample csom code which I can set default value of a taxonomy field which gets published from CT hub. I have managed to do this on a taxonomy field which is not linked with a content type published from CT hub. I cannot set the ddefault value at CT hub, since the defaut value is different at list level.

 

Thanks,

Kolitha

1 Reply

  • Anonymous's avatar
    Anonymous

    Hi Kolitha,

     

    i think this code might help you: http://www.sharepointdoug.com/2014/01/programmatically-provisioning-term-sets.html

     

    look for the anchorfield currently i use pnp to provision and set default metadata.

     

    Kr,

     

    Paul

Resources