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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
neilrogers
Regular Visitor

how to show the connection window then show the navigator window

Hi

I am building a custom power bi connector and would like to show the connection window then show the navigator window. But for the life of me I can't figure out how to trigger the navigator window after the connection window is shown.

So 1. this window is showing currently and works fine.

Screenshot 2024-10-22 at 1.23.13 PM.png

Then when the Ok button is clicked I'd like to show the navigator window. I have the code for the navigator but I have no idea how to show it. 

Screenshot 2024-10-22 at 1.23.21 PM.png

 

The code i have for the navigator is 

 

 

PrimeecoConnectorNavTable = (apiUrl as text, tokenUrl as text, username as text, password as text, clientId as text, clientSecret as text) as table =>
let
    entitiesAsTable = Table.FromList(RootEntities, Splitter.SplitByNothing()),
    rename = Table.RenameColumns(entitiesAsTable, {{"Column1", "Name"}}),
    // Use Feed function with required parameters
    withData = Table.AddColumn(rename, "Data", each PrimeecoConnectorImpl(username, password, clientId, clientSecret,Uri.Combine(apiUrl, [Name]), tokenUrl), Uri.Type),
    withItemKind = Table.AddColumn(withData, "ItemKind", each "Table", type text),
    withItemName = Table.AddColumn(withItemKind, "ItemName", each "Table", type text),
    withIsLeaf = Table.AddColumn(withItemName, "IsLeaf", each true, type logical),
    navTable = Table.ToNavigationTable(withIsLeaf, {"Name"}, "Name", "Data", "ItemKind", "ItemName", "IsLeaf")
in
    navTable;

 

 



 

  

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @neilrogers 

1.Regarding how you can invoke the PrimeecoConnectorNavTable() function you are using, please refer to the code provided below:

First, you need to have a function that verifies that you are logged in properly.

 

validateConnection = (username as text, password as text, clientId as text, clientSecret as text) as logical =>
let
    // Your validation logic here
    isValid = true // Replace with actual validation
in
    isValid,

 

What you might want to note is that I'm ignoring your validation logic.

 

Second, design a main function for function calling:

 

mainFunction = (apiUrl as text, tokenUrl as text, username as text, password as text, clientId as text, clientSecret as text) =>
let
    isValid = validateConnection(username, password, clientId, clientSecret),
    result = if isValid then
        PrimeecoConnectorNavTable(apiUrl, tokenUrl, username, password, clientId, clientSecret)
    else
        error "Invalid connection parameters"
in
    result

 

2.Secondly, here are some navigation validation responses similar to yours:

vlinyulumsft_0-1729658436353.png

 

For further details, please refer to:

Solved: Custom Connector and Navigation Tables - Microsoft Fabric Community

 

3.Finally, here are some relevant links I found for you:

Power BI Custom Connector: Connect to Any Data Sources. Hello World! - RADACAD

How to create a Power BI custom connector - Vidicorp

Handling navigation for Power Query connectors - Power Query | Microsoft Learn

Power BI Custom Connector - Examples, How to Create?


Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi, @neilrogers 

1.Regarding how you can invoke the PrimeecoConnectorNavTable() function you are using, please refer to the code provided below:

First, you need to have a function that verifies that you are logged in properly.

 

validateConnection = (username as text, password as text, clientId as text, clientSecret as text) as logical =>
let
    // Your validation logic here
    isValid = true // Replace with actual validation
in
    isValid,

 

What you might want to note is that I'm ignoring your validation logic.

 

Second, design a main function for function calling:

 

mainFunction = (apiUrl as text, tokenUrl as text, username as text, password as text, clientId as text, clientSecret as text) =>
let
    isValid = validateConnection(username, password, clientId, clientSecret),
    result = if isValid then
        PrimeecoConnectorNavTable(apiUrl, tokenUrl, username, password, clientId, clientSecret)
    else
        error "Invalid connection parameters"
in
    result

 

2.Secondly, here are some navigation validation responses similar to yours:

vlinyulumsft_0-1729658436353.png

 

For further details, please refer to:

Solved: Custom Connector and Navigation Tables - Microsoft Fabric Community

 

3.Finally, here are some relevant links I found for you:

Power BI Custom Connector: Connect to Any Data Sources. Hello World! - RADACAD

How to create a Power BI custom connector - Vidicorp

Handling navigation for Power Query connectors - Power Query | Microsoft Learn

Power BI Custom Connector - Examples, How to Create?


Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.