Hi Dojo,
I'm triggering an Automation Script via an alarm in the alarm console using a HyperLink.
Right now, I'm successfully passing the Alarm ID as a parameter to the script using the [ALARMID] Keyword in the HyperLinks.xml definition.
Is there any keyword to pass the User that triggered the script via the HyperLink in a similar way as the Alarm ID is being passed?
Thanks
I don't think there is such a keyword, but you could achieve something similar inside your script by fetching the history information events and filtering on the Parameter Description 'Script Started'. The value will contain the script name and the user that executed the script, see below for an example:
From a Hyperlink you can only pass arguments to the script which are part of the alarm (e.g. alarm Id, elementname,…). So as Jens indicated there is no keyword to pass the user which started the script.
The keyword would be ideal, as it would reduce the amount of calls.
But that is indeed a nice workaround, thanks for the tip Jens!