Hello,
I have an automation script that uses data from a session variable. Once the script has executed I want the data in that session variable to be emptied. How can I do this?
Hi Christian,
This is possible for any DataMiner running version 10.0.13 (or later).
The feature was introduced under Release note RN27895
To pass the output values of that script to session variables in Visual Overview you can use the new CreateKey(string variablename) method (namespace: Skyline.DataMiner.Automation, class name: UIVariables.VisualOverview).
In the following example, a session variable named “MyOutput” will be created and will receive the value “MyValue”.
engine.AddScriptOutput(UIVariables.VisualOverview.CreateKey("MyOutput"), "MyValue");