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

Copper Contributor


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.




1 Reply

Hi Kolitha,


i think this code might help you:


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