cancel
Showing results for 
Search instead for 
Did you mean: 

Managed Metadata column is supported in OData Filter Query

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

Status: New
Comments
Frequent Visitor

It would be usefull to filter in odata query by metadata value
The query would be something like
Get 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.

Helper II

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? 

Advocate II

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

 

MMS-Caml1.png

 

_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 

MMS-Caml.png

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...

 

 

 

Helper II

Thanks for sharing @SchneidAIR  .  I have used on the workarounds you shared in the links .