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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Configuration file for custom connector

Hello,

 

I'm trying to access configuration file within my powerBI custom connector.

I would like to add the configuration file as parameter to the custom connector, as it should handle many url endpoints with corresponding apikeys. Custom connector should merge the data from all endpoints to show them just in one table, so manual import and merging would require much manual work.

 

Is there any way to make file selection as parametr for the custom connector?

 

I tried to use filepath as string parameter and than use File.Contents(filepath), but connector had some problem with credentials. Probably it can't access the file location or so.

Currently I tried "Authentication = [Windows = []]" and also the "Authentication = [Implicit= []]", but none of these solved the problem.

3 REPLIES 3
rezog
New Member

Has anyone found a solution to this? It has to be a config file that is separate from the compiled package (similar to an app.config so that a user can change settings)

e.g.

 

eg.PNG

Anonymous
Not applicable

Yes you can

put a config file in same directory and use "Extension.Contents" 

 

 


config = Json.Document( Extension.Contents( "Config.json") );
shared property= config[property];

Anonymous
Not applicable

But this has to be done before compilation of the connector.

I need to let this choice on the user of the connector, therefore I need to specify the file/parameters after the "Get Data" in PowerBI

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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