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 / Get files with Odata f...
Power Automate
Unanswered

Get files with Odata filter on name

(1) ShareShare
ReportReport
Posted on by 31

I am trying to get files in a document library witha filter on Name, not Title.

I do understand the difference between column Name and Title in a Sharepoint library, but the customer is not using Title field.

 

Running the action Get files (properties only) with the Odata query "Name eq 'TestName'" returns an error saying that the column Name does not exists.

 

Have anyone succedded with running the action "Get Files (properties only)" with a simple filter on the default Name column in a Sharepoint library?

 


Screenshot_502.png

 

Categories:
I have the same question (0)
  • MattWeston365 Profile Picture
    1,701 on at

    Hi @MrMarshall when you get under the covers of SharePoint, Name doesn't actually exist as a column within the library. It is actually something which is calculated which is why it is surrounded by { } when you look at the output without a filter applied.

     

    The best field to try and filter your query on is "FileLeafRef" which contains the full filename e.g. MattWeston365.docx

     

    So if you query based on that column with the full document name then you will retrieve the item you want back.

  • v-bacao-msft Profile Picture
    on at

    Hi @MrMarshall ,

     

    As @MattWeston365 described, Name field is actually wrapped in {} with the field name, so it cannot be applied to Filter Query.

    26.PNG

    Please consider using Condition or Filter array to filter the items.

    Image reference:

    24.PNG25.PNG

    Please take a try.

     

    Best Regards,

  • arctirux Profile Picture
    4 on at

    Hi,

    You can use Title eq '' .

    title.PNG

     

     

     

     

     

     

     

     

     

     

     

     

    I hope that helps.

  • Community Power Platform Member Profile Picture
    on at

    FileLeafRef works for me:

    fileleafref-2.PNG

  • Muktatt Profile Picture
    7 on at

    This solution worked like a charm. Thanks for the solution

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