---
title: "Using userdata in action's arguments"
description: "Userdata declared in a rule block cannot be directly used as arguments in an Action. To use userdata, call it from a script file triggered by the Action, as userdata becomes an environment variable after action preparation."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004029609-geneos-using-userdata-in-action-s-arguments/index.html"
---
It is normal that the declared userdata data cannot be called in the action arguments.

![Action sample](https://docscdn.itrsgroup.com/faq/images/geneos/action1-bat.png)

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%
```


