How can I call an Epicor Function (Custom Library) from a Data Directive?

Thank you so much. Got it working in a Data Directive custom code:

var result = (Tuple<Decimal, Decimal, String>)this.InvokeFunction("LibraryName", "FunctionName", Tuple.Create(Parameter1, Parameter2, Parameter3, Parameter4, Parameter5));
decimal return1 = result.Item1;
decimal return2 = result.Item2;
string return3= result.Item3;

So, I had to put the type of my the variables that I returned between the Tuple<>

4 Likes