Tray Embedded / Core Topics / Environment variables

Environment variables

  • On this page

There is a list of $.env variables that - at any point in your workflow - can be used to access basic info about the workflow/solution environment. These are:

1
$.env.execution_uuid
2
$.env.execution_start_time
3
$.env.user_id
4
$.env.external_user_id
5
$.env.execution_log_url
6
$.env.workflow_uuid
7
$.env.workflow_title
8
$.env.solution_id
9
$.env.solution_instance_id
10
$.env.source_workflow_uuid

For example, if you have a step which produces the following error output:

trello-error-output

You could use the following:

trello-error-details-email

To format a message which would produce the following:

trello-error-details-output

For a detailed guide to Tray Platform specific environment variables, you can refer to Environment jsonpaths (advanced).

You should set fallback values when using environment variables. For example, $.env.solution_instance_id is only available in the solution instance context and you will get errors while testing the master workflow as the jsonpath isn't available at the moment.