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
acanepa
Resolver I
Resolver I

Custom Connector - Test Connection - Navigation Pane

Hello,

I'm building a Proof of concept of a custom connector, and I'm having some issues at the moment of displaying the data in the navigation pane. I can retrieve data just fine without navigation pane, the key I'm using, a refresh token, works great if I retrieve a table directly. But because I'm using a TestConnection clause, the navigation pane seems use that method of authentication instead of the "normal" one.

 

Currently, I'm using this code for "Data Source Kind description".

 

 

PQExtension1 = [
    // TestConnection is required to enable the connector through the Gateway
    TestConnection = (dataSourcePath) => { "PQExtension1.Contents" },
    Authentication = [
         Key = [Label= "Refresh Token"]
    ],
    Label = "Test Connection"
];

 

 

 I'm using the function below to use the refresh token.

 

Extension.CurrentCredential()[Key]

 

 

For demonstration purposes, I've established the name of the table in the navigation pane, as the refresh token.

If I do the call from Visual Studio, I get the refresh token in the name, as the image below

acanepa_0-1597753828448.png

But, similarly, if I do the same action on PoweBi the name changes to TestConnection = (datasourcepath) =>

acanepa_1-1597753900184.png

Do you know how to solve this? Do I need to change the definition inside the TestConnection?

I'm using TestConnection for being able to use a Data Gateway. I got the examples from TriPin Github.

 

https://github.com/microsoft/DataConnectors/blob/master/samples/TripPin/9-TestConnection/TripPin.pq

https://docs.microsoft.com/en-us/power-query/handlinggatewaysupport

 

Regards,

0 REPLIES 0

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.