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 / 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
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 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

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard