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.
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.
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.
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.
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:
First off thank you! This was my problem as well, however, my use case was for a date that appears in my file name. I wanted my scheduled reports to 'age off' of my document library.
In case someone wants to use a substringof query along with FileLeafRef:
My flow is scheduled to run daily and delete reports older than a week. Manual trigger was successful.
In the example below, my file includes the date created. So I used the addDays formula as the substring.
It took so much trial and error to get the syntax right, just posting this for anyone else who may have an alternative use case like myself.
If I should be posting this somewhere else please let me know!