Saturday 26 November 2022

Exporting a list of custom Content Hub Taxonomies Definitions Names

Have you worked on a content hub implementation where you needed to create too may taxonomies definitions? did you need to loop your client in the process of updating these taxonomies and their translations? how would you get a list of created taxonomies (Definition Names)? you probably checked the UI and you figured out already that there is no way to do that OOTB, if you didn't get into this case before you probably going to in future, its very simple to accomplish this with Content Hub Scripts. keep reading! 



The main key to resolve this issue here, is to know how to loop through existing content hub entity definitions, if you want tot know more about entity definitions, here is where you can find more: 

Then once you know how to do that, you can filter the list of taxonomies out of the entity definitions retrieved, following is a content hub script you can use to do the job, it will create an entity definitions iterator which will go through all entity definitions then you can just filter the taxonomies: 



Another tip I can provide, you can also filter the list based on a creator user, like if you want to retrieve a list created by or not created by a specific user, following is what you can do: 

 

Hopefully the above was helpful! 

No comments:

Post a Comment