I would like to request to enable Managed Metadata column in OData Filter Query.
Thus it's easier for us to do filtering the value from Managed Metadata column before proceed the next action.
Please help.
Thanks.
Cheers,
VTEC
It would be usefull to filter in odata query by metadata valueThe query would be something likeGet Items where"myTaxonomyField" equal "value"I would like to query on the exact term value, without having to give the full path in the termset.
If my termset is built as following, I would like to query "myTaxonomyField eq 'France'"
I don't want to have to build a query "myTaxonomyField eq 'Europe>France'".Taxonomy example :
- Asia
- China
- Japan
- Europe
- France
- United Kingdom.
Hi
I have been trying this in the SharePoint: GetItems action and I can't get it to work
MetacolumnLabel eq 'annoying'
Anyone got this to work?
It is not possible to OData Filter Query on Managed Metadata Columns (SharePoint Taxonomy). Also no "Contains" Filter Condition.
You have to use HTTP Request to SharePoint with a CAML Query Syntax, like this one
_api/web/Lists/GetByTitle('Retention%20Periods')/GetItems(query=@v1)?@v1={"ViewXml":"<View><Query><Where><Eq><FieldRef Name='imsDocumenttype'/><Value Type='TaxonomyFieldType'>@{body('Get_file_properties')?['imsDocumenttype']?['Label']}</Value></Eq></Where></Query></View>"}
The Output ['d']['results'] you have to Select and Parse for the required Filter Condition
See also
sharepoint online - Filtering on Managed Metadata - MS Flow - SharePoint Stack Exchange
How to filter on a Managed Metadata column via REST in SharePoint 2013 โ CleverWorkarounds
But this is a bit cumbersome and doesnt work well with multilingual Term Labels and does not work with multi-value MMS Columns.
Missing Managed Metadata Support for OData Filtering is very annoying.
Alternatives / Workarounds:
Solved: Filtering taxonomy - Power Platform Community (microsoft.com)
Filter a SharePoint list on a Managed Metadata field in a REST based client application โ the IT gen...
Thanks for sharing @SchneidAIR . I have used on the workarounds you shared in the links .
never-displayed