×
Back to Geneos FAQ
Using userdata in action's arguments
It is normal that the declared userdata data cannot be called in the action arguments.
In the example, if I have defined a userdata named abcde in a rule block, it is not possible that an Action would get the value and uses it as the argument value.
A userdata is created as an environment variable after the action has been prepared to run. If you want to use the userdata, you need to call it from a script file that is fired from an Action.
In the example, I would need to modify my bat script in order to get use the abcde.
In my test.bat:
@echo off
echo %abcde%
["Geneos"]
["Geneos > Gateway"]
["FAQ"]