cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Prodigy
Post Prodigy

Send mail if NO file is in folder

Hi all,

I try to make a flow when there is NO file in a specific folder.

I made this here under but it send always a mail even when there is a file with specifiv name.

What do i wrong?

 

flow file.png

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

I would take this approach instead:

CheckFileNotExist.jpg

Because the output of List files in a folder returns an array, the array can be filtered for the filename you are looking for. The array length will be greater than zero if the file is found and will be zero if it is not.

View solution in original post

3 REPLIES 3
Super User III
Super User III

I would take this approach instead:

CheckFileNotExist.jpg

Because the output of List files in a folder returns an array, the array can be filtered for the filename you are looking for. The array length will be greater than zero if the file is found and will be zero if it is not.

View solution in original post

Post Prodigy
Post Prodigy

@Paulie78 
Thanks for yor response.

 

The task "send mail" is then in the colom 'if no'?

Super User III
Super User III

That's right.

Helpful resources

Announcements
New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (92,251)