Showing results for 
Search instead for 
Did you mean: 
New Member

Check if subsite exists to do an action



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? 



Community Support
Community Support

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:

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Regular Visitor

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.


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.

Helpful resources

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (64,794)