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 / Sending notification w...
Power Automate
Answered

Sending notification when file added to top-level SP library but not when files are added to top-level folders

(0) ShareShare
ReportReport
Posted on by 73

Hello, 

 

I am working with a SP document library and sending notifications via power automate flow. I currently have it set up to send a notification when and item is added to the library but am having an issue with folders. I need to have the notifications sent out when a file is added to the top-level library but don't want to send a notification when a file is just being added to a folder. Is this possible? Thanks for your help in advance. 

Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @Thaone2 

     

    Yes, you could set the trigger condition on "When a file is created (properties only)". 

     

    In the below example, I have taken a document library 'Test Library' and when a file is added on root of it then flow will execute but when a file is added in any other folder then flow would not execute.

     

    To add trigger condition, click ellipses(...) & select "Settings" from sub menu:

    ManishSolanki_0-1700066645938.png

    Next, scroll down & add trigger condition. Press Done to save the changes:

    ManishSolanki_1-1700066706603.png

    @equals(triggerOutputs()?['body/{Path}'],'Test Library/')

    Pls replace actual library name in the above expression.

     

    Once trigger condition is set, the flow will execute only for the file added on the root folder of the library.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Thaone2 Profile Picture
    73 on at

    Thanks @ManishSolanki this works perfectly!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard