cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
ferrarirenan95
Frequent Visitor

Web Page source with Javascript

Hi community. How are you?

 

I have a web page built in JavaScript that generates an Excel database (with random name) by clicking on a button (no URL for this command). Is there any way to connect to this random database with PowerQuery and automate the process? (Access the base URL, click on the button, get the database)

 

I googled so many times but didn't find any helpful result.

 

Thank You!

3 REPLIES 3
Greg_Deckler
Super User
Super User

@ferrarirenan95 - That sounds very odd, not sure how that would work. I would think you would need to use Power Automate to click the button, somehow capture the random name that is generated and then feed that over to maybe the Power BI REST API to create a dataset or something.

 

Out of curiousity, why?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Thanks for answering, @Greg_Deckler!

 

This file is part of one of my PowerBI projects, and i'd like to automate the process of extraction and connection to this source... get rid of the dailly manually action. Do you imagine any other solution to this?

 

Thank you again.

@ferrarirenan95 - To the best of my knowledge, Power Query cannot press a button on a web page. I would recommend changing your web page to act like a REST API where you could do something like this:

 

http://<domain>/<page>/?button=pressed

 

You could parse the query string and if this appears you kick off the same routine as if someone manually pressed the button. Maybe this could return JSON or ODATA or something that would have in the information the random Excel file name that was generated and its path. Then Power Query could parse this out and then create a connection to the file.

 

I'm still not clear on generating random Excel files but people do things.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors