Forum Discussion
PDFs from Sharepoint to Fabric
- 1 year ago
Hi danitskofabric,
Thank you for reaching out to the Microsoft Fabric Community Forum. Also, thanks to tayloramy, for those inputs on this issue.
I understand the challenge, you have got PDFs sitting in SharePoint that you would like to work with directly inside a Fabric Notebook, but Power Automate isn’t an option due to policy restrictions.
Use the SharePoint/OneDrive connector in Fabric to pull the PDFs into your Lakehouse. Once they’re there, you can process them in your Notebook with Python libraries like PyPDF2 or pymupdf.
https://learn.microsoft.com/en-us/fabric/data-factory/connector-sharepoint-folder-overview
https://learn.microsoft.com/en-us/fabric/data-factory/connector-sharepoint-online-list
https://learn.microsoft.com/en-us/fabric/data-factory/connector-sharepoint-folderIf your org allows API access, you can use the Microsoft Graph API inside your Notebook to read the files directly from SharePoint. Here’s a starting point:
https://learn.microsoft.com/en-us/graph/api/resources/onedrive?view=graph-rest-1.0If this is a one-off, you can also manually upload the PDFs into your Lakehouse and process them from there.
Hope this clears it up. Let us know if you have any doubts regarding this. We will be happy to help.
Thank you for using the Microsoft Fabric Community Forum.
Hi danitskofabric,
Are you able to copy them into a Lakehouse using a Pipeline?
If you found this useful, consider giving Kudos. If I solved your problem, mark this post as the solution.
- danitskofabric1 year agoFrequent Visitor
Hi tayloramy,
As I saw that only supports Sharepoint-Online-Lists, but I need to copy Files that are inside Sharepoint-Online Folders.
- tayloramy1 year ago
Super User
Hi danitskofabric,
When you select a SharePoint Online List connection in the Pipeline, you are able to select a connection type of SharePoint Online File. This is currently in preview.If you found this useful, consider giving Kudos. If I solved your problem, mark this post as the solution.
- danitskofabric1 year agoFrequent Visitor
Thank you, I didn't saw that! I now created a Service Principal and gave it access to the Sharepoint Site. If I test the connection for Sharepoint Online List it works, but if i choose Sharepoint Online File and test the connection it doesn't. Does the SP needs more Permission?