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 / Flow to detect and ale...
Power Automate
Unanswered

Flow to detect and alert when SharePoint folder deleted

(0) ShareShare
ReportReport
Posted on by 26

We have document libraries with important folders that should not be deleted. Rather than removing inheritance on all folders, I'm trying to set up a notification alert when certain folders are deleted.

 

I've set up the flow as follows, and I'm using the folder 'Test' to test the flow, but the notifications are skipped with the condition trying to only trigger with certain folders being deleted. The flow works fine without the condition steps that name the folders.

 

I'm new to Power Automate and would appreciate it if someone can tell me where I'm going wrong with the expression to name the folders.

 

The start of the flow: 
folderdeleted1.png
The condition:
folderdeleted2.png
The expression I'm using to identify folders is - string(triggerOutputs()?['body/Name'])
 
Thanks
Categories:
I have the same question (0)
  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @steveg01 

     

    Pls add true value from the function in the form of expression instead of plain 'true' string to test the folder condition as shown below:

    ManishSolanki_0-1701087988625.png

    Rest all clauses of the condition seems to be fine.

     

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

     

    Thanks

  • steveg01 Profile Picture
    26 on at

    Thanks @ManishSolanki that's fixed it.

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard