Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
mumbaicharaja
Regular Visitor

How to access onedrive shared folder from power query in excel

I have a shared folder on onedrive, which has many files in it.

 

I want to pick up each file and merge records from all of them together.

 

I also wish to grant permission on this folder to other user...and even he/she should be able to run same powerquery to merge the records from those files into one.

 

Sharepoint.folder option doesn't work for this. What option can be used to access the shared folder?

3 REPLIES 3
lbendlin
Super User
Super User

Yes, Sharepoint.Folder does work for this. Provide more information where it fails for you.

I think I am stuck at: 1. User1's onedrive has following structure https://xyz.sharepoint.com/personal/user1_xyz/folder1/folder2/Source This source folder contains all the files to be merged, The powerQuery (PQ) de works all fine by going to first folder1, then folder2, and then Source...picks up all files one by oe and does the merge activity. 2. Usre2 is granted access to powerquery code. He is granted the access to folder "Source". Then when program tries to first go to folder1 it fails because USer2 doesn't have access to it. What I am looking for is 1. this folder traversing should be allowed for user2 without exposing him other contains of the folder. OR  2. when User1 shares the folder "Source", a URL is created. So in power quey, can I use this URL and directly jump to it so that even User2 will have smooth access to files in that folder?

You hadn't mentioned that this is a personal sharepoint. Don't do that, use a group sharepoint.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors