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
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (37,189)