Try these lines of code instead:
That works, even though its "undocumented".
What is the "best/correct" way to execute a Action found this way?
And yes, I know this is not the normal way to execute actions, but this is a somewhat different/special scenario.
Would it be something like this:
var methodCall = "System.getModule(\"" + theModule.name + "\")." + theModule.actionDescriptions.name + "(" + parameter1 + ", " + parameter2 + ")"; actionResult = eval( methodCall );
I would prefer the following alternative without eval():
actionResult = theModule[theModule.actionDescriptions.name](parameter1, parameter2);
In general, usage of eval() should be avoided if possible, for various reasons (including performance and security risks).
I figured that out, with the help of some other vExperts, in the vExpert Slack.
But good to have it confirmed here.