Retrieve a Value of a Local Agent Variable Created in a Dependency

You can retrieve a value of a local agent variable created or updated in a project used as a dependency.

Context

Refer to the following procedure to retrieve the value of a local agent variable created or updated in a project used as a dependency.

In Project A, there is an automation where the Set Local Agent Variable activity is using the following parameters:

In Project B, Project A is used as a dependency.

Procedure

  1. In Project B, add Project A as a dependency.
  2. Save the identifier of this dependency.

  3. Create an automation and insert the nested automation from Project A where the local variable is set.
  4. Add the activities used to read the value from the local agent variable to the automation.

    For more information about these activities, see Retrieve a Value of a Local Agent Variable.

  5. Select the Get Local Agent Variable activity and set the parameters.
  6. Enter the name of the variable. Then, select project in the variableScope and Value under Output Parameters.