Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello Developers,
I am trying to develop the custom connector using M Language with the implementation of oAuth2.0 authentication.
Previously, clientId and clientSecret was accessed from the respective file as:
client_id = Text.FromBinary(Extension.Contents("Client_ID.txt"));
client_secret = Text.FromBinary(Extension.Contents("Client_Secret.txt"));
Now, I am facing trouble to implement the new scenario where user must need to enter the clientId and clientSecret in the parameter to have authentication rather than reading from the respective files.
I have developed the simple parameter UI.
Testing_Type=type function(
client_id as (type text meta[
DataSource.Path=false,
Documentation.FieldCaption ="Client_id"
]),
client_secret as (type text meta[
DataSource.Path=false,
Documentation.FieldCaption ="Client_Secret"
])
) as table meta[
Documentation.Name = Extension.LoadString("DataSourceLabel")
];
How to read those values entered by user?
Thank You!
#powerQuery #CustomConnector #powerbi
Your requirement is outside the design envelope for custom connectors.
Custom Data Connectors and You | Ben Gribaudo
Handling authentication for Power Query connectors - Power Query | Microsoft Learn
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 |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |