Citizen Developer
Zeitspanne
explore our new search
​
Power Apps: Connect SharePoint Lists Now
Power Apps
12. Mai 2026 03:20

Power Apps: Connect SharePoint Lists Now

von HubSite 365 über Dhruvin Shah [MVP]

Microsoft MVP (Business Application & Data Platform) | Microsoft Certified Trainer (MCT) | Microsoft SharePoint & Power Platform Practice Lead | Power BI Specialist | Blogger | YouTuber | Trainer

Microsoft expert: Connect SharePoint Online to Power Apps Code Apps with PAC CLI, React TypeScript Patient Tracker

Key insights

  • SharePoint Online can serve as a live data source for Power Apps Code Apps, letting you build custom UIs with React and TypeScript while using the PAC CLI to link lists to your app.
    This tutorial builds a Patient Tracker that reads list items and renders dynamic cards.
  • Start in VS Code: authenticate with pac auth create, create a new Code App project, install packages, and run npm run dev to preview the app locally.
    Create a secure connection reference for the SharePoint site before adding the data source.
  • Get the Connection ID with pac connection list, then run pac code add-data-source and supply parameters -a -c -t -d (API, Connection ID, Table/List name, Data URL) to register the SharePoint list.
    Copy the SharePoint list's actual table name from the site to avoid errors.
  • The PAC command auto-generates a Models and Services folder and updates power.config.json so your app can call data methods directly.
    Use the generated service (for example, PatientTrackerService.getAll()) inside React's useEffect to fetch and render items.
  • Connected lists support full CRUD operations and common column types like choice/lookup/person columns; ensure proper permissions and consider delegation limits for large lists.
    Test queries and handle column types in the generated models to avoid runtime issues.
  • Follow best practices: rename connection reference to a clear name, verify changes in power.config.json, read official docs, and preview locally while iterating on styles and logic.
    This workflow speeds development and keeps SharePoint data secure and reusable across apps.

Overview of the Video

In a recent YouTube demonstration, Dhruvin Shah [MVP] walks viewers through connecting a SharePoint Online list to a Power Apps Code App using Visual Studio Code and the PAC CLI. He builds a practical Patient Tracker app that reads live data from a SharePoint list and renders it as dynamic cards with React and TypeScript. Consequently, the video serves both as a conceptual overview and a hands-on tutorial, showing commands, file changes, and runtime behavior. Therefore, readers get a clear sense of how low-code and pro-code approaches can be combined for real-world scenarios.


Step-by-Step Setup Walkthrough

First, Shah demonstrates authenticating the developer environment using the pac auth create command and then running a blank project locally with npm run dev. Next, he creates a SharePoint connection reference, advises renaming that connection as a best practice, and runs pac connection list to capture the Connection ID needed for further commands. Then he uses the pac code add-data-source command with parameters such as -a (API), -c (Connection ID), -t (Table/List), and -d (Data URL), which generates models and service wrappers automatically. Thus, the tutorial shows the exact sequence required to wire a SharePoint list into a Code App project.


Code Integration and Runtime Behavior

After adding the data source, Shah explores the auto-generated Models and Services folders and points out how the generated service exposes methods like PatientTrackerService.getAll() to fetch all records. Then he updates app.tsx to call that service inside a useEffect hook, which ensures the app fetches data on load and updates the UI reactively. Moreover, Shah replaces default styling with custom CSS and previews the final UI where patient cards render live SharePoint items. Consequently, viewers can see how a small amount of wiring produces a live, maintainable front-end that relies on SharePoint as the authoritative data source.


Advantages Highlighted and Practical Benefits

Shah emphasizes that integrating SharePoint lists into Power Apps Code Apps blends low-code speed with developer control, which benefits teams that already use Microsoft 365. Furthermore, he highlights how the PAC CLI simplifies connection management and how generated models reduce repetitive coding, thereby accelerating development. Additionally, using SharePoint as the backend avoids data migration, leverages existing permissions, and supports common column types like choice and lookup without custom services. As a result, organizations can rapidly prototype and then extend to production-ready apps with relatively low overhead.


Tradeoffs and Challenges to Consider

However, Shah also touches on tradeoffs that developers should weigh. For example, while generated models speed up development, they can introduce maintenance overhead when SharePoint schemas change, so teams must plan schema governance and versioning carefully. Additionally, delegation limits and performance considerations for very large lists require attention; consequently, developers may need to design queries and UI patterns that avoid unpaged scans. Finally, environment-specific connection IDs and configuration in files like power.config.json mean teams should adopt secure CI/CD and secret management practices to avoid leaking environment details.


Best Practices and Next Steps

Shah recommends clear naming for connection references and validating the Connection ID early in the workflow to prevent later confusion during CI/CD or environment switches. Moreover, he suggests verifying generated code folders and keeping service calls encapsulated so that migration to alternative backends is possible later if needs change. He also previews further episodes that will explore automation and AI-assisted development, implying that subsequent tutorials will deepen the integration story with tooling like GitHub Copilot. Therefore, viewers have a path to expand capabilities while maintaining good engineering hygiene.


Conclusion

Overall, the video by Dhruvin Shah [MVP] delivers a compact, practical guide to connecting a SharePoint Online list to a Power Apps Code App using the PAC CLI, React, and TypeScript. It balances tutorial-level detail with architectural context, and it calls out important tradeoffs around maintenance, security, and scale. Consequently, developers and makers who use Microsoft 365 can follow the steps to create live, data-driven UIs while planning for governance and deployment. Ultimately, the tutorial is a useful resource for teams that want to combine the convenience of SharePoint with the flexibility of custom code in Power Apps.

Power Apps - Power Apps: Connect SharePoint Lists Now

Keywords

Connect SharePoint list to Power Apps, Power Apps SharePoint integration, PowerApps connect to SharePoint list, SharePoint connector Power Apps, Bind SharePoint list in Power Apps, Power Apps CRUD operations SharePoint, Use SharePoint list as data source Power Apps, SharePoint list Power Apps code