cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Check if subsite exists to do an action

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

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Check if subsite exists to do an action

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

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.
Highlighted
Regular Visitor

Re: Check if subsite exists to do an action

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.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (9,926)