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 / Retrieving SharePoint ...
Power Apps
Answered

Retrieving SharePoint List Data for PCF with List URL

(0) ShareShare
ReportReport
Posted on by 33

I am looking to create a PowerApps canvas control where for the 'Items' of the control, the user would enter a URL to the SharePoint list they want to target and retrieve the data. Is this possible without using the SharePoint connectors or PowerAutomate? If possible, how?

I have the same question (0)
  • Verified answer
    cchannon Profile Picture
    4,702 Moderator on at

    Yes, it is possible. Most likely you will need to use Graph API in a PCF to pull the data you want the users to interact with. This is not impossible, but it does require quite a bit of work as you will need to get their current token silently, then prompt for a new token if they don't have one that is already valid for that SharePoint site. There are several blogs and past posts on this forum discussing how to call Graph API from a PCF and how to use MSAL to call Graph API from inside a PCF.

     

    I haven't tried this second option myself, but another you might try is just iframing in the sharepoint content. That would make your coding VERY simple (just set a new src on the iframe) but it might not work if SharePoint does not have your powerapps domain in the allowfrom constraint. I know they added dynamics.com to the allowfrom about a year ago, if you're lucky, your powerapp is also allowed now. I wrote a blog post here on the community to show people how to build a sharepoint-targeting iframe pcf like this about a year ago. Can't find it right now, but here's a link to the github repo: cchannon/SharePointIFrame: A basic PCF for displaying the native SharePoint document library experience as an iframe in dataverse (github.com)

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard