Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Newfold Digital
IN
Last activity: 6 Mar 2024 8:27 EST
Articles in Pega can be pulled up with any category, even it is not tagged to that category
Hi All, To pull the Pega KM articles, we are using anonymous authentication using URLMapping rule.
We have multi level categories/taxonomies and our articles are mapped to categories at different level.
If an Article mapped to a sub category, it will not store the parent category details like taxonomy Id. We need to traverse all the way back to find the Top category.
When we pull the article with article ID and top category, the URL mapping activity is returning the article with the article ID and not considering the top category.
Approaches tried: From the sub category taxonomy id, we can get the top category taxonomy id using string functions like below. Ex: Sub category ID : TAX_123_23_45 Top category taxonomy id for the above sub category will be : TAX_123 Is there any alternative approaches to find out the top category taxonomy ID instead of using a sub string?