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 Platform Community / Forums / Power Automate / Help with condition is...
Power Automate
Answered

Help with condition is looking for the filename

(1) ShareShare
ReportReport
Posted on by 23
Hello fellow Power Automate geeks!

I'm rather new to this doing Power Automate, so bare with me :) 
 
I got a assignement at work, where I have to create a file in sharepoint if the file isn't there in the first place. The file have a specifc name - "Name" "mounth" "year" - so its dynamic.
 
In my flow I have tried some different things, but I can't get it to match on the filename.

Now I have done this - and it only works untill "DoesTheFileHaveTheCorrectName. The condition is not getting the filename.
 
 
This is the first Condition - IsThereAFileInFolder - and it works.
 
If I change this step to look a the filename, it will not pass this. It will be false and therefor the file is "created" again:

 
So I need help to make a condition to look at the filename from the "GetFilesInFolder" step - or maybe I should do another step?

Hit me!

And sorry if I miss some simple steps - again, i'm rather new to this :) 
 
I have allso tried to make a For each with trying to get the "name"-function to work. It going to "false" and creating a new file:
 
While waiting for a reponse, i'm working on it to get it to work :) 

Now I have tried if I should make it work with the condition "DoesTheFileHaveTheCorrectName".

 
I can see that the flow "Get file properties" is getting the file name, but why is it not going to pass the condition as "True"?
Categories:
  • Suggested answer
    JB-30071354-0 Profile Picture
    23 on at
    I found the mistake. I should use "FilenameWithExtension" for it to work :) 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard