Forum

Data source syntax ...
 
Notifications
Clear all

Data source syntax for file in a folder in Onedrive

2 Posts
2 Users
0 Reactions
79 Views
(@naazdeboo)
Posts: 2
Active Member
Topic starter
 

I have a project folder on onedrive (personal) which is accessed by all concerned.

However, queries created via local (offline) onedrive, have a data source that goes "c:usersloginnameonedriveRproject"

As a result other users are unable to refresh the queries when they open the same workbook.  It tries to find the same file path on their desktop.

I went through the tutorial in PQ on Dynamic Link and folderpath.  I am going to try that later today.  Nevertheless, I was wondering if there is a way to point data source for all queries to workbook on onedrive, which eliminates the need to create dynamic folder path link.

Will it work better if we move shared folder to say a dropbox or boxsync, instead of onedrive.

One solution I still have to try is to change location of Onedrive to c: for all users.  But that is not really the best solution.

Help would be sincerely appreciated.

Nz

 
Posted : 30/12/2016 8:29 am
(@catalinb)
Posts: 1937
Member Admin
 

Hi Nz,

Power Query does not have suport for OneDrive (yet), but there is a solution to get data from onedrive cloud.
Here is how:
You need the HTML code tht is used for embedding the file into a web page. The code looks like this:
<iframe src="https://onedrive.live.com/embed?cid=69B6A15F5E687BE3&resid=69B6A15F5E687BE3%21115&authkey=AAc_RFpsNFcLglo&em=2" width="402" height="346" frameborder="0" scrolling="no"></iframe>
From this text, we extract the link:
https://onedrive.live.com/ embed?cid=69B6A15F5E687BE3&resid=69B6A15F5E687BE3%21115&authkey=AAc_RFpsNFcLglo&em=2
 
Replace the text "embed" from the link with "download":
https://onedrive.live.com/ download?cid=69B6A15F5E687BE3&resid=69B6A15F5E687BE3%21115&authkey=AAc_RFpsNFcLglo&em=2

Thuis last link should be used to connect to OneDrive Excel file with Power Query, using the commands:
New Query - From Other Source - From Web (use the link you just edited in the last step)

 
Posted : 30/12/2016 11:31 am
Share: