Skip to main content
Power Automate
    • Robotic process automation
    • Power Automate Desktop
    • Process advisor
    • AI Builder
    • Connectors
    • Templates
  • Pricing
    • Blog
    • Documentation
    • Roadmap
    • Self-paced learning
    • Webinar
    • Overview
    • Issues
    • Give feedback
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • Register
    • ·
    • Sign In
    • ·
    • Help
    Go To
    • Microsoft Power Automate Community
    • Community News
    • News & Announcements
    • Get Help with Power Automate
    • General Power Automate Discussion
    • Connecting To Data
    • Building Flows
    • Using Flows
    • Power Automate Desktop
    • AI Builder
    • Power Automate Mobile App
    • Translation Quality Feedback
    • Share, Chat, Discuss
    • Community Chat & Announcements
    • Power Automate Cookbook
    • Off Topic Discussion
    • Power Platform Integration - Better Together!
    • Power Platform Integrations
    • Power Platform and Dynamics 365 Integrations
    • Watch & Share Videos
    • Webinars and Video Gallery
    • MBAS Gallery 2019
    • MBAS Gallery 2020
    • Give Feedback & Share Ideas
    • Power Automate Ideas
    • Report Issues
    • I Found A Bug
    • Find & Join Local User Groups
    • Power Automate User Groups
    • Read & Share Blogs
    • Power Automate Community Blog
    • Community Blog Topic Suggestions
    • Community Support
    • Community Accounts & Registration
    • Using the Community
    • Community Feedback
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 
    • Microsoft Power Automate Community
    • Forums
    • Share, Chat, Discuss
    • Power Automate Cookbook
    • Flow to Check SharePoint Site exists or not - Hand...

    Flow to Check SharePoint Site exists or not - Handles exceptions

    09-01-2020 14:18 PM

    Dual Super User rsaikrishna
    Dual Super User
    524 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    rsaikrishna
    Dual Super User rsaikrishna
    Dual Super User
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    Flow to Check SharePoint Site exists or not - Handles exceptions

    ‎09-01-2020 02:18 PM

    Use Case:

    How to check whether a SharePoint site exists or not by using a flow

     

    Flow Details:

    In Power Automate, there is no direct action to check whether a SharePoint site exists or not. So, we need to rely on existing SharePoint actions.

     

    I am using "Get Lists" action from SharePoint connector.  I am providing the SharePoint site URL to "Get Lists" action. When this action executes as part of the flow execution, we will run into following scenarios:

    A. When the SharePoint site does not exists:  In this case, "Get Lists" action, throws 404 exception.

    B. When the SharePoint site exists but the flow creator does not have access to the site: In this case, "Get Lists" action, throws 403 exception.

    C. When the SharePoint site exists: In this case, "Get Lists" action returns all the lists in the SharePoint site.

     

    In the flow, I placed a Switch action to handle exceptions raised by "Get Lists" action.

     

    rsaikrishna_0-1598994881930.png

    rsaikrishna_1-1598994921972.png

     

    For complete details, please watch my YouTube video at https://youtu.be/6oPFlXFczAU 

     

    I hope this will be useful for you.

     

    Regards

    Krishna Rachakonda

    https://www.youtube.com/channel/UCciwZsQIm5q8q03kjjWtgVw

     

     

     

     

     

     

    watch?v=6oPFlXFczAU

    CheckSharePointSiteExists_20200901195506.zip
    Labels:
    • Labels:
    • Automated flows
    • Business process flows
    • Button Flows
    • Scheduled flows
    • Solutions
    Message 1 of 1
    524 Views
    0 Kudos
    Reply
    • All posts
    • Previous Topic
    • Next Topic

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Automate
    • Power Virtual Agents
    • Sign up free
    • Sign in

    Browse

    • Templates
    • Connectors
    • Partners

    Downloads

    • Mobile
    • Gateway

    Learn

    • Documentation
    • Learn
    • Support
    • Community
    • Give feedback
    • Blog
    • Pricing
    • © 2021 Microsoft
    • Twitter
    • RSS Feed
    • YouTube
    • Contact us
    • Trademarks
    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Terms & conditions