Hi,
I’m trying to execute an Automation script from a QAction and would like to pass parameters directly to the script.
I’ve reviewed the documentation on ExecuteScriptMessage – DataMiner Docs, but it wasn’t helpful in this regard.
One idea I had was to use a protocol parameter as a trigger, and then call the Automation script via XML. From what I understand, it might be possible to pass parameter values directly through that mechanism.
Where can I find documentation on how to trigger an Automation script from a protocol using XML?
And is there a recommended way to pass parameters directly from a QAction to an Automation script?
Thank you!
Best regards
Hi David,
You are on the right track by using the 'ExecuteScriptMessage' :).
The following page on the docs explains more in details what you can provide with the 'Options' field.
To pass on your data from the QAction to the Input Script Parameter of your automation script, you can add the 'PARAMETERBYNAME' option and pass on your desired data.
See the following example:
string scriptData = "My Input Data";
string[] scriptOptions = { "OPTIONS:0", "CHECKSETS:TRUE", "EXTENDED_ERROR_INFO", "DEFER:TRUE", $"PARAMETERBYNAME:Data:{scriptData}" };
Hope this helps!
Kind regards,

Thank you Robin, now I understand it.
Kind regards,