cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SylvieLet17
Responsive Resident
Responsive Resident

ODATA Query for Get Files Filename NOT Title

Hi all, 

 

I'm trying to filter a library to find a document based on Filename NOT based on Title. 

Our users do not use Titles and asking them to create a name and a title for documents is not a realistic request. 

So, I need to have my Flow check a Library for a specific name. 

I've tried:

Name eq 'value'

FileName eq 'value'

File name eq 'value'

...nothing is working and I can't really find any helpful resources about syntax for document libraries. 

Help?

5 REPLIES 5
v-yamao-msft
Community Support
Community Support

Hi @SylvieLet17,

 

Do you want to filter out a document based on FileName but not on Tile?

I have made some tests on my side, but with no success.

There are no related docs on this issue could be found.

As a temporary workaround, please use Title instead of FileName. I will keep an eye on this issue and back to you once I have any updates.

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yeah, it looks like Filename is just not available yet.

My process is for a publishing/approval flow. So my workaround was on a previous Flow to set the document title = filename unfortunately. 

Hopefully my users will not require the title for any purposes. 

Hi,

 

Per my certain research and test, I am afraid that filter query based on File name might have not been supported yet.

Please submit a request on Flow Ideas Forum about this issue at here:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Instead of FileName use FileLeafRef and it works!

Thank you! This worked for me

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,363)