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 / When a file is created...
Power Automate
Answered

When a file is created (properties only) - exclude new folders from triggering Flow

(0) ShareShare
ReportReport
Posted on by 104

I have a document library and a list in a SharePoint site. When a list item is submitted I have built a flow that creates a folder in the document library and gives the requested people access. This part works fine. 

 

I have a second flow that basically sends an email to those with access to the folder when a new file is uploaded to their folder. This works absolutely fine for files. However when the initial folder is created from the first Flow, this triggers the second flow as it treats the folder as a new file. 

 

Is there a way I can amend the second Flow to exclude folders from either the "When a file is created (properties only) trigger" or the "Get file properties" action?

 

flow 1.JPG

Categories:
I have the same question (0)
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    You can add a Trigger Condition that checks if it's a file (Not a folder) so the flow will only run if it's a file.

     

    The Trigger Condition would be:

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

     

    grantjenkins_1-1677819173126.png

     

     

    grantjenkins_0-1677819142229.png


    ----------------------------------------------------------------------
    If I've answered your question, please mark the post as Solved.
    If you like my response, please consider giving it a Thumbs Up.

  • SamB2 Profile Picture
    104 on at

    Thanks @grantjenkins - that is very helpful.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 416

#3
David_MA Profile Picture

David_MA 344 Super User 2026 Season 1

Last 30 days Overall leaderboard