Reference passwords, connection strings, and other parameters from your actions

To reference the custom values from your actions, you must know the key path of the actions.

You can get the key path from the help text on the Custom values tab in the Datacap Application Manager.

The text at the beginning of each section shows how to reference the value from an action. For example, for values that are defined in the Advanced values section, use @APPVAR(values/adv/<value_name>). You can reference the value as:

@APPVAR(values/adv/MyPassword1)

The following table shows how to reference the values for each field type.

Field Description
General string values @APPVAR(values/gen/<value_name>

Example: @APPVAR(values/gen/MyParameter1)

Data source connection string values @APPVAR(values/dsn/<value_name>:cs)

Example: @APPVAR(values/dsn/MyDatabase1:cs)

Datacap data source connection string values @APPVAR(values/tmdsn/<value_name>:cs)

Example: @APPVAR(values/tmdsn/MyTMDatabase1:cs)

Advanced values @APPVAR(values/adv/<value_name>

Example: @APPVAR(values/adv/MyPassword1)

Attention: The :cs suffix is required to access connection strings that are defined in the Data source connection string and Datacap data source connection string fields.