Hello,
I need create a new cutom connector for Power Bi. In the code is necessary put conection to the database included user and paswword for to connect automatically.
In the next try i put the folow code:
section HelloWorld; [DataSource.Kind="HelloWorld", Publish="HelloWorld.Publish"] shared HelloWorld.Contents = (optional message as text) => // let // _message = if (message <> null) then message else "(no message)", // a = "Hello from HelloWorld: " & _message // in // a; let HELLO = Oracle.Database("ORADES11", [HierarchicalNavigation=true, Query="ANY QUERY"]) in HELLO; // Data Source Kind description HelloWorld = [ TestConnection = (dataSourcePath) => {"HelloWorld.Contents"}, Authentication = [ UsernamePassword = [Username = "USERNAME", Password = "PASSWORD"] ], Label = Extension.LoadString("DataSourceLabel") ];
what I try to do is pass the database, a query already made and the credentials so that automatically in power bi desktop, login automatically .
I do not know if it is possible in a connector and if so I do not know how it could be done.
Thank you