web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Vibe coding Power Apps
Power Apps
Answered

Vibe coding Power Apps

(1) ShareShare
ReportReport
Posted on by 6
Hi ,Good Time, 
I am working on vibe coding.
I have a query related to bringing all the SharePoint sites in the App.
I am trying to create the app which shows all the SharePoint sites in the tenant.
It uses MCP server ,sometimes it uses SharePoint connector, sometimes uses MCP copilot action .
But it is not fetching the sites and shows time out.
Can you please help me in what prerequisites we need to use and also please help me in let me know the proper prompt for the Application which needs to be created..
Thank you very much!
IMG_20260506_1934...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Vish WR Profile Picture
    2,548 on at
     

    What you facing is  is mainly a limitation of how SharePoint and Graph handle large tenant data, not your prompt.

    There’s no reliable way to fetch all SharePoint sites live in an app using MCP or SharePoint connector — it usually times out because the tenant data is too large and the calls are paginated and throttled.

    What you can do instead  

    Use Microsoft Graph (GET /sites?search=* or getAllSites) with proper permissions like Sites.Read.All, but don’t call it directly from the app.

    Best practice is to run a scheduled flow or job that pulls all sites and stores them in a list or Dataverse. Then your app simply reads from that stored data, which avoids timeouts completely.

    In short

    Don’t fetch sites live. Sync them in the background and show the cached data in your app — that’s the only stable way at tenant scale.

    Vishnu WR
     
    Please âœ… Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥

     



     
  • Suggested answer
    11manish Profile Picture
    2,252 on at
    Do NOT rely on:
    • SharePoint connector
    • Native MCP action
    for tenant-wide site discovery.
    Use:
    • Microsoft Graph API + Azure backend
    and let MCP/Copilot orchestrate the experience rather than performing full enumeration directly.
     
     
  • CU06051400-0 Profile Picture
    6 on at
    Thank you for the suggestion provided.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,041

#2
11manish Profile Picture

11manish 676

#3
Valantis Profile Picture

Valantis 655

Last 30 days Overall leaderboard