Variables

Any task can use predefined variables. These variables are created through Developer Console and defined as JSON object. This JSON object is next transformed to input fields and available on User Dashboard in user friendly way.

This is how different parameters of task can be configured.

Example JSON variables definition might look like this:

{
  "checkbox#ENABLED": true,
  "short_text#ORDER_EXPORT_PATH": "/new_path/",
  "short_text#PASSWORD": "password",
  "short_text#USER": "user@ftp.com",
  "short_text#HOST": "ftp.com"
}

JSON property name consists of variable type and variable name and is separated with #. JSON property value is just our variable value.

In your code you would referance variable by its name. To output second variable you would type: {{ ORDER_EXPORT_TYPE | log }}

Above snippet would look like this on User Dashboard:

Variable type might be one of the following:

short_text
short_texts
long_text
collection
collections
customer
customers
date_time
json
location
locations
product
products
product_variant
product_variants
order
orders
checkbox

Last updated