Option to add/remove(edit button) a taxonomy in the employee center portal is not visible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 07:22 AM
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?
Thank you in advance!
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2024 07:50 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2024 06:21 PM
Hi @sundaram080713 ,
Navigate to Content Taxonomy> Taxonomies > mark the record "active" false which you don't want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2024 09:58 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2024 07:03 PM
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();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2024 10:26 AM
Thank you @Community Alums it's work fine