Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 18014

Enter function parameter values manually in custom data connector during execution

$
0
0

Hi all,

I have a use case where I want to ask user to enter the data source name (existing power BI provided data sources) to connect to and then subsequently retrieve the input values for that data source and so on process that data further using custom logic ( like mask sensitive information).. 

For example:

 

 

// This file contains your Data Connector logic
section SampleConnector;

[DataSource.Kind="SampleConnector", Publish="SampleConnector.Publish"]
shared SampleConnector.Contents = (DataSourceName as text) as any =>
let
Source = if (DataSourceName = "HDFS") then
SampleConnector.HDFS()
else
"Unknown"
in
Source;

[DataSource.Kind="SampleConnector", Publish="SampleConnector.Publish2"]
shared SampleConnector.HDFS= (ServerName as text) as any =>
let
Files = Hdfs.Files(ServerName)
in
Files;

....... more functions.....

 

Is there a way to achieve this?

 

 


Viewing all articles
Browse latest Browse all 18014

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>