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

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (8,547)