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_uuid2$.env.execution_start_time3$.env.user_id4$.env.external_user_id5$.env.execution_log_url6$.env.workflow_uuid7$.env.workflow_title8$.env.solution_id9$.env.solution_instance_id10$.env.source_workflow_uuid
For example, if you have a step which produces the following error output:
You could use the following:
To format a message which would produce the following:
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.