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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
tanito
Frequent Visitor

Custom Connector User Input as Record

Hello,

 

I try to build a custom connector that implements a certain logic in the navigation. Unfortunately, input parameters are not yet queried in the navigation. I hope you experts can help me.

 

I define the navigation table and add a data column:

viewsTable2 = Table.AddColumn(viewsTable, ‘Data’, each ChangeTable([SCHEMA_NAME],[VIEW_NAME],OdbcDatasource)),

 

In the ChangeTable function, I want to output a table that is filtered. To do this, I define an inner function in ChangeTable that should take a record parameter and returns a table:

ChangeColumnNames = (schema as text, view as text,source) =>

    let

        ...

        Func = (paramsRecord as record) =>

            let

                tbl = ...

            in tbl;

        NewType = type function (

        paramsRecord as

        [ ...]

        ) as table,

        Ascribed = Value.ReplaceType(Func, NewType)

    in

        Ascribed;

 

How is only the empty record displayed in the navigation and not the concretisation of the record from the variable newType?

 

tanito_0-1716813912030.png

 

 

If I now click on OK and look at the dataset, specific user input is now requested. But why only now and not in the navigator?

tanito_1-1716813912031.png

 

 

It would be good for my further code if the record can be kept. Is that possible?

1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi @tanito 

Based on my understanding, you want to add a new record in table by inputing data, and the data can display in navigator,based on my understanding, Navigator provides existing data sources, and if you want to display the data entered in Power Query in real time in Navigator, you can't do it,  you can refer to the following link.

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

You can use function to filter in navigator, you can refer to the following link.

Solved: Custom Connector and Navigation Tables - Microsoft Fabric Community

 

Best Regards!

Yolo Zhu

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
v-xinruzhu-msft
Community Support
Community Support

Hi @tanito 

Based on my understanding, you want to add a new record in table by inputing data, and the data can display in navigator,based on my understanding, Navigator provides existing data sources, and if you want to display the data entered in Power Query in real time in Navigator, you can't do it,  you can refer to the following link.

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

You can use function to filter in navigator, you can refer to the following link.

Solved: Custom Connector and Navigation Tables - Microsoft Fabric Community

 

Best Regards!

Yolo Zhu

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

 

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors