Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin 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
Hi guys,
I'm creating a Template report so that users can connect to their data.
As a source i'm using some rest APIs not managed by me that needs a token in the header in order to operate.
Before creating the template app i deployed the report in my personal workspace and it works online too (also the refresh works).
Here's a little snippet of the M code i use to get the data (in PowerBI Desktop this works):
let
Source = Json.Document(
Web.Contents(
"https://api.test.com/",
[
Headers=[Authorization=parToken]
]
)
)
When installing the app the user must specify the parameter so that powerquery can make the API calls.
The issue is that in order to check if the connection works after the user inserts the parameter PowerBI checks the connection to the API (https://api.test.com/) but without passing the Header (in which the token is).
Do you have any clue on how to avoid this?
It would be sufficent to not check if the connection works.
Thank you!
Thomas
Hi @nhch ,
I have some suggestions for you:
Consider creating a custom connector for your REST API. Custom connectors allow you to define specific authentication methods, including passing headers.
Below is the post will help you:
Solved: How to specify HTTP request header parameter in Po... - Microsoft Fabric Community
It provides step-by-step instructions to set up the connector with the necessary headers.
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so so much, i developed my custom connector by following your link and it works like a charm!
@Anonymous
Update:
It works just in PowerBI Desktop.
In order to use it online i must have a PowerBI Gateway but, as specified in the post, I'm connecting to some exposed web REST APIs in order to get the data, so i don't have access to that system.
Furthermore, i'm creating a template in order to create an App, so i need that everyone could see their data.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 8 | |
| 8 | |
| 7 |
| User | Count |
|---|---|
| 38 | |
| 30 | |
| 26 | |
| 21 | |
| 19 |