Variable Types Used in Reference Tasks
  • 05 Dec 2024
  • Dark
    Light
  • PDF

Variable Types Used in Reference Tasks

  • Dark
    Light
  • PDF

Article summary

In both generations of Automation Builder, variables are used to hold one or more values that can be referenced by various devices and applications There are three variable types (static, job, and task) that can be used in a Reference task on the Automation Builder canvas.

Static Variables

Static variables are hard-coded and maintain the same value between function calls.
They cannot be modified or changed programmatically in the lifecycle of an automation run. A static variable remains in memory while the automation is running. They are often used to maintain settings whose values should not change once a workflow (automation) has started.

Task Variables

Task variables are values provided as a result of executing another task earlier in the workflow of an automation. Essentially, they provide reference information for another task. This means you are choosing some previously executed task, taking its output, and using that as the selected task’s input.

Job Variables

Job variables allow you to use changeable values in the configuration and execution of a job. You create a variable, give it a name and a value. You can then insert the variable (by referencing its name) in various places in a workflow. When IAP runs a job, it replaces the reference variable with the job variable's value. Job variables are useful in two ways. First, they allow you to pass values as inputs to a workflow each time you execute it. Secondly, anywhere in the workflow, a task can set/update the value of a job variable. As a best practice, use task variables instead of job variables whenever possible, but if task variables will not work, then use job variables..


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.