cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Maiweda
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
v-yamao-msft
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.
jmarinacci
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
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,604)