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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Get data from web - login needed

Hi,

 

This is a sort of bump from a couple of much older threads, curious if there are any solutions now we are in 2023.

I did a lot of searches on this but I didnt find much of a solution except for enabling Web Legacy mode in Excel which can do it.

Hopefully there is a way to do this in PBI now but I cannot find much recent.

 

Anyway, I have a table (csv file) in a webpage I need to pull into Power Query. The problem is you need to login to the webpage before you can access it. Is there anyway to do this in Power Query?

 

In a browser, I goto the page, and get directed to another to login, then I can get the page I need.

 

Report is here:
https://webpage.server.net/group123/QuickReport/Action/View/23236 (this is a csv file download)

 

Redirects to here until you login:
https://webpage.server.net/group123/

1 REPLY 1
ams1
Super User
Super User

Hi,

 

Haven't clicked on the links you provided (safe habbit? 😁) - but I'm guessing that it's oauth related which is kinda challenging at least from Excel PowerQuery perspective (that doesn't support custom connectors - why Microsoft, WHY?!).

 

One of the main problems with implementing oauth in plain PowerQuery is the fact that you have to hardcode in the query your username and password (because you cannot EASILY use the credentials manager for that - WHY?!) which is NOT good practice.

 

see:

https://blog.crossjoin.co.uk/2021/08/29/connecting-to-rest-apis-with-oauth2-authentication-in-power-...

 

For PowerBI a custom connector can make oauth easier - but it's a bit more complicated to implement (not impossible).

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors