Quantcast
Channel: Microsoft Online: SharePoint Online forum
Viewing all articles
Browse latest Browse all 10096

Generate Modern Filter URL

$
0
0

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

https://[LibraryUrl]/Forms/AllItems.aspx?useFiltersInViewXml=1&FilterField1=Process&FilterValue1=23&FilterType1=Counter&FilterLookupId1=1&FilterOp1=In

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!


Viewing all articles
Browse latest Browse all 10096

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>