Dear all,
I was wondering if custom data connectors may be the answer to an issue.
At the moment you can't refresh from a data source if the call to that data source resides within an M function.
For example, I have series of Sharepoint tables, the URLs of which change from time to time and are held in table X. To load these I need to read the URLs from table X, this I need to use some form of function which then disables the ability to schedule refreshes in the service. ie
fileURL is a list of URLs to the tables in Sharepoint
getData = (fileURL) => Sharepoint.Tables(fileURL), // function to read URLs would also do some processing of the data
main_table = Table.AddColum(myTable, {"Data from Sharepoint"}, each getData([fileURL])) // insert the required data into main_table
Although the custom data connectors only work with Power BI desktop at the moment, once they worked for the service would building a custom data connector allow me to get around this issue by building the lookup of the data source URLs into the data connector rather than having them as dynamic parameter in a function. Or would I still have the same issue?
Thanks!