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 / How to check the entir...
Power Automate
Unanswered

How to check the entire SharePoint site that there are no more files with the name of the selected file?

(0) ShareShare
ReportReport
Posted on by 87

Hi! 
I've a library, where I upload a files. And I want to check are there any other files with the same name through out the SharePoint site.
After verification, I will send notifications by mail.
Please tell me how this can be done using Power Automate?
Thank you! 

Categories:
  • Rhiassuring Profile Picture
    8,692 Moderator on at

    Hi there, 

     

    You can use the "Get All Lists and Libraries" action. 
    After, you can use the "Filter Array" to bring back only Type 101 (libraries.) 

    Rhiassuring_0-1653810368547.png

     

    ( item()?['Type'] on the left, and string(101) on the right.) 

    From there, all you need to do is search your Filename (name, right? Not title? Is that what you want?) through those libraries. That looks like this. 

     

    Rhiassuring_2-1653810638340.png

     

    As soon as you put in the Get Files (Properties Only) and put the "DisplayName" into the Library from  your Filtered Array output, it will turn it into an "Apply to Each", which means it is going to run the query on every library that came back in your list.

     

    If you want an email for each match, you would put it within your Apply to Each loop.

     

    If you want a single email (which is the typical want!), then you will want to build a string or array variable (using the "Append to X Variable" action (X = whichever type you want), within the loop, so you can put it into your email outside of the loop.

     

    Cheers,

     

    Rhia

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard