I have a sharepoint online sitecollection and have created a termset.
How to get parent taxonomy term from child term using JSOM. I want to get the parent term of a term from the termset that i have fetched. I am using get_parent() but that is not working.
var parent =currentTerm.get_parent();
alert(parent.get_name());
I have even tried the below
var value = SP.Taxonomy.currentTerm.get_parent();
Even this has failed for me.
Is there any other way i can get the parent term using JSOM?
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Raghavendar SwaminathanPosted May 2, 2018, 11:32 PM
Shail SPosted May 3, 2018, 6:17 AM