> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Target Property Variables

> Target Properties are exposed as variables available in Workflow Editor (UI), Shell Plugins, and Script based plugins. Variable Name Description &lt;T

Target Properties are exposed as variables available in Workflow Editor (UI), Shell Plugins, and Script based plugins.

<table><colgroup><col /><col /></colgroup><tbody><tr><th>**Variable Name**</th><th>**Description**</th></tr><tr><td>\<Target Group Code>\_\<Property Name></td><td>Value of property defined on current environment and a particular Target Group.\
\
A Workflow is executed for specific a Environment. The value comes from the target defined by the currently executing Environment and the given Target Group.\
\
If the Project has overridden the value for a specific Property, that overridden value is returned.</td></tr></tbody></table>

> [!NOTE]
>
> Properties on the current build/deploy target group do not need to be qualified with the Target Group code.

# Unix or Windows Shell

*The below snippet is an example of to get the FDSVN\_URL property for the SAMPLEAPPS instance.*

Use \$\{variable\_name} to find value for specific instance.

* myTG='SAMPLEAPPS'

* myproperty='FDSVN\_URL'

* mydynamicvar=$\{myTG\}\_$\{myproperty}

  * SAMPLEAPPS\_FDSVN\_URL

* echo \$\{!mydynamicvar}

  * [http://svn.domain.com/repo1](http://svn.domain.com/repo1)

  * Note use of ! inside \{ as that is necessary to get value of the variable that was created by concatenation of two variables.

# Groovy

### Find value for specific instance

```
getProperty(propertyName)
```

### Find property from currently executing instance

```
getProperty(FD_TARGET_GROUP_CODE + "_FDJDBC_USER")
```

### Lookup a FDSVN\_URL for SAMPLEAPPS instance

```
svnUrl=""; lookupkey="SAMPLEAPPS" + "_FDSVN_URL"; if (binding.variables.containsKey(lookupkey)) { svnUrl=getProperty(lookupkey);}; return svnUrl;
```
