How to call a function in code from a BPM

This is really easy. There’s lots of threads on this. Essentially the code is just:

string functionLibrary =  "TestLib";
string function =  "TestFunc";
var result = (Tuple<System.Boolean, System.String>)this.InvokeFunction(functionLibrary,function,Tuple.Create(this.ds));
outputBool = result.Item1;
outputStr = result.Item2;
1 Like