Forum Discussion
Data source hosted on Dropbox
Hi,
I am using Power Query in Excel and need to pull in some data via a query from an Access file on Dropbox. If I add the local version of the file, other users can't use the file b/c they dont have the same local file path to Dropbox as I do.
Is there some way to connest to the web version of the file on Dropbox? I tried, but it doesn't see the tables inside the database?
Any other ideas?
Thanks,
Steven
Can you please look at my URL below and see if I did it correctly because it still says "authentication failed". What is the proper format of the filepath?
ankitpatira wrote:sshweky URL should be as below and you choose anonymous method as you already have api token specified in URL
https://api-content.dropbox.com/1/files/auto/{FILE PATH}?access_token={YOURAPITOKEN}
13 Replies
- ankitpatiraCommunity Champion
sshweky Make use of Dropbox REST APIs.
1. Go to https://www.dropbox.com/developers and sign in and get API token.
2. In power bi desktop click web connector enter URL as below, replaceing {FILE PATH} and {YOURAPITOKEN}.
https://api-content.dropbox.com/1/files/auto/{FILE PATH}?access_token={YOURAPITOKEN}3. Right click result of query and select Access.
- sshwekyHelper III
Hi Ankit,
Thank you so much! However, I ran into 1 small roadblock. When I hit connect I get this box where I need to sign in.
Here is s screenshot of what I am seeing...
https://www.dropbox.com/s/3ssfx6c2hq5p5kr/Capture.PNG?dl=0
I tried to log in a bunch of different ways and it tells me 'user not authourized'. Any ideas?
Here is the final link tot he file with API Token & Path.
Thank you so much for your help!!!
Steven
- ankitpatiraCommunity Champion
sshweky URL should be as below and you choose anonymous method as you already have api token specified in URL
https://api-content.dropbox.com/1/files/auto/{FILE PATH}?access_token={YOURAPITOKEN}
- Kamal_PKNew Member
I tried this solution.
Relocate the Dropbox folder to Drives other than C (OS Drive). For Ex: F:\DropBox (Using Preferences in the Dropbox in Taskbar). Do the same for your peers in their system (Whoever wants to try access the files in Dropbox).
Now try to work on the files in Dropbox. Peers when they access the files and refresh, data gets updated.
Thanks
Kamal
- AnonymousNot applicable
thanks for your suggestion, but my dropbox folder is already outside C:\...
It is in D:\.
The issue persists.
- Kamal_PKNew MemberMake sure the file source path is similar to whoever access the files, like d:\Dropbox. I tried with my team it's working.
- DUYARRA_BIRegular Visitor
Hello,
I tried again and it works fine, here is the M code of the query, in this case, retrieving a CSV file:
let Origen = Csv.Document(Web.Contents("https://www.dropbox.com/s/------/Anexar1_peque.csv?dl=1"),[Delimiter=","]), #"Tipo cambiado" = Table.TransformColumnTypes(Origen,{{"Column1", type text}}) in #"Tipo cambiado"Note that I changed the ?dl=0 for ?dl=1