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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
lubosbednar
Helper I
Helper I

Auto refresh URL with token authentication

I'm having troubles to set up auto refresh when I use http request using url with token authentication. It works in power bi desktop, but I cannot set up auto refresh in power bi service. It doesn't accept Anonymous Authentication method.

 

Data are extracted as follows:

= Web.Contents("https://app.idoklad.cz/developer/api/IssuedInvoices?PageSize=1000000&Page=1",[Headers=[#"SecureToken...; = "<mytoken>",#"X-App" = "iSmart",#"X-App-Version" = "1.0"]])

 

Refresh_error1.png

Url shows only https://app.idoklad.cz/developer/api/IssuedInvoices?PageSize=1000000&Page=1, without authentication part, so it is obvious that it doesn't accept Anonymous authentication. But how I can provide token using power bi service?

 

Thanks for help,

Lubos

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

@lubosbednar

 

As mentioned in this similar thread, this is not possible due to constraints with the way Web.Contents stores credentials. And there are also some workaround mentioned in that thread, please go and try to see if the solution works.Smiley Happy

 

Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

@lubosbednar

 

As mentioned in this similar thread, this is not possible due to constraints with the way Web.Contents stores credentials. And there are also some workaround mentioned in that thread, please go and try to see if the solution works.Smiley Happy

 

Regards

Thanks for your help @v-ljerr-msft. Workaround with RelativePath worked for me. Great!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.