In modern filter experience, we can apply filtering from the filter pane. I have a managed metadata field, Process. When I am filtering on it it's working fine.
For this filtering, a url is generated like the following
I want to automate this url generation. In order to do this, I need to access the numeric value of each term. Is there a way that we can get the numeric value of a metadata. In my example, value 23 is used to filter on Finance value. So, how can I get this numeric representation?
I checked the browser's console and it's making a POST request to the following,
https://[SiteUrl]/_vti_bin/TaxonomyInternalService.json/GetNextFilteringHierarchy
However, I am unable to fetch any results from it in PowerShell. In response of this request, they are getting this numeric representation of each metadata.
<ul paging='true' lastTermId='7703142d-bb09-47fc-8248-781a0a2bc95d'><li>23</li><li>Finance</li><li></li><li></li></ul>
Is there a way to fetch this result using TaxonomyInternalService.json or anything else in PowerShell?
Thanks in advance!