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 / Check if subsite exist...
Power Automate
Unanswered

Check if subsite exists to do an action

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I am saving attachments from Outlook to a Sharepoint Document List. There is no problem with that.

 

Buuut depending on the name of the file, the file has to move to a subsite or another. To do this, first I have to check if the subsite exists, if it does the file moves there and if it doesn't It sends an Email.

 

I'm stuck checking if the subsite exists, and I feel like it should be easy. Smiley Sad

 

Some ideas or examples? 

 

Thaaanks!!

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi Maiweda,

     

    I am afraid that it might be not possible to check whether a SharePoint subsite exists or not using Flow.

     

    Please consider submitting an idea at Flow Ideas Forum, I will help collect and report it on my side:
    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas


    Best regards,
    Mabel Mao

  • jmarinacci Profile Picture
    2 on at

    I was able to find a solution for this as I ran into the same issue today.

     

    The overview is check for the /Shared Documents/ folder info on the site.  If it does you return true, if it doesn't or the get metadata fails you return false.  Doesn't do exactly what you asked but is usable for my work around.  In my case it is being used as part of a larger application so I return the data to powerapps.

    Thanks,

    JohnCheck if Site exists.png

     

    Hope that helps!

     

    You can set the variable to any site name you want to pass, I just used a static one for testing.

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard