GetRegistryKey<TResult>

GetRegistryKey<TResult>

What to use it forPrerequisitesEssential options to set

Use GetRegistryKey<TResult> to get a value from a registry key, for use further down the Workflow.

None.
  • Key
  • Name
  • Result
  • Result type

<TResult>

For Activities with 'TResult' as part of their name you should indicate what the data type of the output (i.e., the result) needs to be. This initial setting affects the options that will appear in the Activity itself, which is why you will need to set it before you can configure the Activity.

Options

OptionWhat is itHow to use it
KeyKey is the path to a name an value pair in the registry.

Enter the registry path to a name. You can obtain the path by right-clicking the folder containing the name, then select 'Copy key name' from the contextual menu. An example:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\FileSystem
NameThe specific option within a key that you would like to add or change.A key contains one or more names. Enter a relevant name.
ResultOption to save the results to a variable, for use later in the Workflow.

Create a variable to save the results to.

 Read more
Why do I need variables

You can use variables to create a more flexible and sustainable Workflow.

Variables are mostly used in advanced Activities such as the Diversity Activities. These Activities often have two parts:

  • One part is to identify where to get data that serves as input for the Activity.
  • One part is to identify where to store data that serves as output for the Activity.

For the Diversity Activities it is common to store the data resulting from the Activity into a variable. Once stored in the variable, you can re-use the stored value elsewhere in the Workflow, by referring to the variable.

To create a variable to store data
  1. Click on the Variables button, below the Workflow. a panel will appear, containing an editable table.
  2. In the table click on 'Create variable' to start creating a new variable.
  3. Provide a name for the variable, preferably a name that describes its contents. Use camel case.
  4. Indicate the type of variable (e.g. boolean, integer, string, etc.). You can find specific types using 'Browse for types...'.
  5. Moving to another row saves this data to a new entry.

You can now use the name of this variable into one of the fields of the current Activity, or in Activities that are next.

Result typeOption to indicate what type of data is stored into the variable.

Use the dropdown to indicate the type of object.

Related pages