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 Automate
Answered

OData query

(0) ShareShare
ReportReport
Posted on by 8
Trying to use a filter query in a Sharepoint "Get Files (properties only)" action and having no luck getting it to function. 
 
I'm trying to filter the sharepoint "Name" column against data in an Excel sheet "Name" column, and it's pulling the excel data properly but I get:
 
The expression "FileLeafRef eq 018179.pdf" is not valid. Creating query failed
 
I've used "Name" and "LinkFileName" as well as "FileLeafRef" after various research, but none of them change anything. 
 
The actual expression I'm using is 
FileLeafRef eq item()?['Name']
 
So....how do I get this filter query to work?
 
 
 
Categories:
I have the same question (0)
  • Verified answer
    StevieB Profile Picture
    74 on at
    I'm not sure which of those 3 columns will get you to the name, but I do know that the dynamic content 'Name' will need to be wrapped in single quotes so that Power Automate knows its a string. 
     
    Hopefully this helps!
     
    Thanks,
     
    -Stephen
  • Suggested answer
    RB-18021448-0 Profile Picture
    8 on at
    Solution Found! I had to surround the active content with single quotes. 
     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard