Run a DataFunction using IronPython in Spotfire
I found myself wanting to run a data function, after a change in a document property within a Spotfire mod, this is how I did it:
from Spotfire.Dxp.Data.DataFunctions import DataFunctionExecutorService, DataFunctionInvocation, DataFunctionInvocationBuilder
dataManager = Document.Data
app = Application
dataFunction = None
for function in dataManager.DataFunctions:
if function.Name == 'Signals Post':
dataFunction = function
dataFunction.Execute()