cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gottijay2000
Advocate II
Advocate II

Filter SharePoint List on Managed Metadata field

i'm trying to filter a SharePoint list and retrieve item that match a certain in a managed metadata column. This field accepts multiple values.   i have seen in some articles that odata filter query are not currently supported. Is there a way of doing this in flow?

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @Gottijay2000,

 

You could consider using Send an HTTP request to SharePoint action and api to filter the managed metadata field, there is a document that introduces how to use it, hope something could help you:

https://itgeneralisten.wordpress.com/2018/10/09/filter-a-sharepoint-list-on-a-managed-metadata-field...

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-litu-msft
Community Support
Community Support

Hi @Gottijay2000,

 

You could consider using Send an HTTP request to SharePoint action and api to filter the managed metadata field, there is a document that introduces how to use it, hope something could help you:

https://itgeneralisten.wordpress.com/2018/10/09/filter-a-sharepoint-list-on-a-managed-metadata-field...

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

SchneidAIR
Advocate III
Advocate III

Get items and OData-Filter not possible with Managed Metadata Columns. Actually you have to use HTTP Request to SharePoint with CAML Query Syntax.

 

Please also see

Managed Metadata column is supported in OData Filt... - Power Platform Community (microsoft.com)

 

 

But please consider, that Filtering on Mananged Metadata Columns (TaxonomyFieldType) with the Term Label will not work in multilingual Termsets with multilingual Term Translations.  MMSTermLabel.png

 

Also beware when you attempt to use the Term GUID instead. This will not work, you will get no filter results.

I dont know why....

 

But instead you can use a HTTP Request to SharePoint with a CAML Query on Lookup-Filtertype on the Terms WSSID (this would be generated based of the local TaxonomyHiddenList of the Site Collection).

This Filter will also work in multilingual Taxonomy Environments on the same site...

 

MMSTermWSSID.png

Example

 

_api/web/Lists/GetByTitle('Responsibilities')/GetItems(query=@v1)?@v1={"ViewXml":"<View><Query><Where><And><And><Eq><FieldRef LookupId='TRUE' Name='imsProcess' /><Value Type='Lookup'>@{body('Get_file_properties')?['imsProcess']?['WssId']}</Value></Eq><Eq><FieldRef LookupId='TRUE' Name='imsDepartment' /><Value Type='Lookup'>@{body('Get_file_properties')?['imsDepartment']?['WssId']}</Value></Eq></And><Eq><FieldRef LookupId='TRUE' Name='imsLocation' /><Value Type='Lookup'>@{body('Get_file_properties')?['imsLocation']?['WssId']}</Value></Eq></And></Where></Query></View>"}

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (2,555)