Option to add/remove(edit button) a taxonomy in the employee center portal is not visible.

Priya95
Tera Contributor

Hi Team,

I need to create a new taxonomy and link it to the employee center portal as per a requirement. In the employee center portal, I am not able to find an option or edit button to add a taxonomy. Ideally, there should be a button 'edit' in the taxonomy related list to add/remove oob taxonomy. What could possibly be causing the issue? 

find_real_file.png

Thank you in advance!

9 REPLIES 9

sundaram080713
Tera Expert

Hello @Community Alums ,
can you please help me as i am new to ESC portal stuff,

i have a requirement to remove all the unused taxonomy in instance.
as i have total 5 taxonomy in my instance and i want to remove 3 of them, how can i do it via help of script?

Community Alums
Not applicable

Hi @sundaram080713 ,

Navigate to Content Taxonomy> Taxonomies > mark the record "active" false which you don't want.

 

Hello @Community Alums , Thank you for reply.
but in my case i don't have to make them false, i have to remove/Delete.

i have 4 Instance DEV, QA, PRE_PROD & PROD, i want to clean the taxonomy and it's related content which are not used anymore.
how can i  remove/Delete via help of script.

this is he solution i reached soo for, please let me know if it is correct or not,
i have developed two script : 
First  to remove all the connected component's 

var gr = new GlideRecord('m2m_connected_content');
gr.addEncodedQuery('topic.taxonomy=e104eb73c3a3421077befd0ed40131bb');
gr.query();
while (gr.next()){
gr.deleteRecord();
}

Second to delete taxonomy :

var gr = new GlideRecord('taxonomy');
gr.addEncodedQuery('name=Test 1');
gr.query();
while (gr.next()){
gr.deleteRecord();
}

 Please let me know if this is correct or not, if not then can you please help me with the script?

Community Alums
Not applicable

Hi @sundaram080713 ,

This script is fine :

var gr = new GlideRecord('m2m_connected_content');
gr.addEncodedQuery('topic.taxonomy=e104eb73c3a3421077befd0ed40131bb');
gr.query();
while (gr.next()){
gr.deleteRecord();
}

Thank you @Community Alums  it's work fine