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 / 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:
I have the same question (0)
  • 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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard