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

Notifications

Announcements

Community site session details

Community site session details

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard