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

Access Web content credentials fails while queries work in Power Query

Hey, for a report I use web.Contents to create tables from json/csv data from the web. These web.Contents calls are consuming an api that uses a Bearer token for authorization. These queries work within the Power Query editor and actually get the correct data, however not when trying to Apply.

 

When an Apply step is started, I get an "Access Web content" pop up which tries to verify that the data sources can be accessed, which fails because I can't use a Bearer token header in this popup.

 

an example of a query that works like this would be something like this:

 

 

 

 

= Json.Document(Web.Contents("https://<website.com/relevant/path>", [Headers=[Authorization=#"bearer-token"]]))

 

 

How can I get past the "Access Web content" popup?

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User
1 REPLY 1
amitchandak
Super User
Super User

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.