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

Community site session details

Session Id : jWkJy4Zu4Mn10YwnwDSPmM
Power Automate - Building Flows
Answered

Query Help For Get Items (Title contains string)

Like (0) ShareShare
ReportReport
Posted on 4 Nov 2022 21:06:21 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

  • PowerAppsWizard Profile Picture
    388 on 25 Aug 2023 at 14:59:26
    Re: Query Help For Get Items (Title contains string)

    Could you mark the answer as solution?

    Thank you

  • dsflex Profile Picture
    11 on 11 Nov 2022 at 22:04:27
    Re: Query Help For Get Items (Title contains string)

    This worked for me, thank you!

  • PowerAppsWizard Profile Picture
    388 on 08 Nov 2022 at 19:41:35
    Re: Query Help For Get Items (Title contains string)

    Did you miss the ' and ' in the statement?

    substringof('ECON 4589-123', Title) 

  • dsflex Profile Picture
    11 on 07 Nov 2022 at 19:56:42
    Re: Query Help For Get Items (Title contains string)

    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 04 Nov 2022 at 22:20:59
    Re: Query Help For Get Items (Title contains string)

    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.

     

     

  • Verified answer
    schwibach Profile Picture
    Moderator on 04 Nov 2022 at 21:14:14
    Re: Query Help For Get Items (Title contains string)

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

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete