We started looking into converting our custom data sources to custom data functions based on a recommendation from TIBCO development team ... but we found out that custom data functions are created at Document level (AnalysisApplication.Document.Data.DataFunctions.AddNew(myDataFunction)) not at the application level. This means that we can only create a data function if we have an opened document!
While data sources can be created at AnalysisApplication level using AnalysisApplication.Open(myDataSource). We need a new API to load data from a data function when we have no open document. Something like AnalysisApplication.Open(myDataFunction)