web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Query Help For Get Ite...
Power Automate
Answered

Query Help For Get Items (Title contains string)

(0) ShareShare
ReportReport
Posted on by 11

I am wanting to search through a folder in Sharepoint to find a PDF that contains a given string, which in this case is a course (e.g. ECON 2000-100). I don't understand how to format the ODATA filter query in order to accomplish this. Here is a screenshot of my flow as well as some example documents of what I am searching for. The first part of the PDF names are blurred out to hide private information.

 

Get Items in FlowGet Items in FlowFiles to be found in SharepointFiles to be found in Sharepoint

Categories:
I have the same question (0)
  • Verified answer
    schwibach Profile Picture
    2 Moderator on at

    First thing to do is list the files in that folder.

    Here's a short clip how to do that https://ibb.co/fqV9r6Z

     

    Then you use the filter array action to only get the record of the file name that you want. Then you can get the file content in the next action.

     

    It's only a few steps. You can do it.
    If you need more assistance, we're here. 🙂

  • PowerAppsWizard Profile Picture
    388 on at

    Hi,

    odata could also work. In the filter statement e.g. Title eq 'ECON 2000-100' this would return the document(s) which have a Title equals to the statement. Or you try in the filter statement a substringof('ECON 2000-100', Title) which list all documents containing the string.

     

     

  • dsflex Profile Picture
    11 on at

    This is the error I receive when I try this solution:

    The expression "substringof(ECON 4589-123, Title) " is not valid. Creating query failed.

  • PowerAppsWizard Profile Picture
    388 on at

    Did you miss the ' and ' in the statement?

    substringof('ECON 4589-123', Title) 

  • dsflex Profile Picture
    11 on at

    This worked for me, thank you!

  • PowerAppsWizard Profile Picture
    388 on at

    Could you mark the answer as solution?

    Thank you

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 523

#2
Valantis Profile Picture

Valantis 318

#3
David_MA Profile Picture

David_MA 235 Super User 2026 Season 1

Last 30 days Overall leaderboard