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 / Flow does not always r...
Power Automate
Unanswered

Flow does not always recognize the condition?

(0) ShareShare
ReportReport
Posted on by 10

Hi - I am very new to PA so please be patient with me as I try to figure this out.

I currently have a condition that when someone puts a folder into  teams it emails a specific person - I do not want it to email me for everything inside the folder so I came up with this flow.  

1. This seems to work until I found my next issue...every email being sent was from me and not the person who created the file. 

I then changed a few settings in my "Send an Email" this apparently just went completely awry and broke everything.

 

2. Now when I try to test my flow it doesn't even get past the the first condition - I place a folder into the perspective Teams file and it treats it as a not-folder and completes the loop.  

 

PS I added another condition because some folders have folders inside of them that are named the same thing so I wanted that kicked out as well - this also worked. I am not sure at what point my flow decided that it was too smart for me.

 

Thank you to anyone who responds, in advance. 

Screenshot 2023-01-04 120703.png
Screenshot 2023-01-04 121159.png
Categories:
I have the same question (0)
  • KAlexander_Engr Profile Picture
    10 on at

    KAlexander_Engr_0-1672856199020.png

    FYI for anyone asking for more info. This is what I get whenever I place a folder into teams to test it. It doesn't even get past the first condition. 

  • AliB365 Profile Picture
    91 on at

    Hi @KAlexander_Engr 

     

    Please can you check that the expression for your first condition is triggerOutputs()?['body/{IsFolder}'] by hovering your mouse over the dynamic pill for isfolder.

     

    However, if you want to remove the condition entirely, you might want to consider a trigger condition.  This can be accessed from the ellipsis (...) of the trigger, select settings, scroll down to trigger conditions, click add and then paste the following (including the @):

     

    @equals(triggerOutputs()?['body/{IsFolder}'], true)

     

    AliB365_0-1672861606579.png

     

    You will no longer need a condition and the flow will only run if a new folder is created, keeping your flow history clean.

     

    If you've got any more questions please let me know.  I hope this helps.

     

    Ali B

  • KAlexander_Engr Profile Picture
    10 on at

    Ali, thank you for replying! I verified that when hovering over the "IsFolder" it is displaying that.

    I also tried your solution of @equals(triggerOutputs()?['body/(IsFolder)'], true) and it still does not work for me. When I go to test it the flow is stuck in a continuous loop. 

    KAlexander_Engr_0-1672868068204.png

     

  • KAlexander_Engr Profile Picture
    10 on at

    I deleted my flow and tried to do this from scratch and it worked. I'm not sure what happened.

    However the issue I'm running into now is it is sending me an email for EVERY folder within that newly created folder. Is there anyway I can just be emailed for the top level folder?

     

    Thank you again

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 411

#2
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard