Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

ODATA fuzzy query

(0) ShareShare
ReportReport
Posted on by 25

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!

  • Anupam.khasia Profile Picture
    Anupam.khasia 343 on at
    Re: ODATA fuzzy query

    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-a-functional-consultant/

     

    Let me know if that helps you.

     

    Thanks

    (Please mark it resolved if it helps you)

  • RobElliott Profile Picture
    RobElliott 9,978 on at
    Re: ODATA fuzzy query

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard