cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jackwu
Frequent Visitor

ODATA fuzzy query

Hi , 

 

I want to use ODATA query to filter in 'Get Items' . We have a column named 'Test No'. it includes the values like ' PPP-20-001'. 'PPP-20-002'. The middle two chars means the creation year value. I want to use ODATA to filter out all the items like 'PPP-20-xxx'. 

 

Is there a way to achieve that in ODATA query?

 

Thanks!

2 REPLIES 2
RobElliott
Super User
Super User

@jackwu this isn't possible  with your example as the filtering you can do is less than (lt), less than or equal to (le), greater than (gt), greater than or equal to (ge), equal to (eq) and not equal to (ne). So you will need to use a filter array once you've brought back your items from the list as that CAN have a contains.

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

anupam8555
Helper V
Helper V

Hi @jackwu ,

 

You can use "startswith" operator to filter out data. You can use filter query as per below .

Filter query=startswith(fieldname,'PPP-20-')

Refer following article for use of different operators in flow :

https://diyd365.com/2019/11/20/every-power-automate-ms-flow-filter-query-you-ever-wanted-to-know-as-...

 

Let me know if that helps you.

 

Thanks

(Please mark it resolved if it helps you)

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,215)