Reserved Global Variables

The following are reserved global variables that can be used in code points and parts of other points.

_token

Shortcut to access the data token. Also used to access temporary values passed by invoke points as attributes.

Example

A customer name may be written in the data token as data.crm.customer_name. This can be accessed in a code point as _token.crm.customer_name. To access without _token the data token would need to be imported into the code point.

Usage Notes

  • When an invoke point passes values within its attributes key, it is temporarily written to the data token. Code points that this invoke activates can access those values using _token.

_this

The path of an entity, translating to the entity key with the array element index.

Example

If the entity key is selection, and there are three entities, the paths would be selection[0], selection[1], selection[2]. If _this is used on the third entity, it would return selection[2].

Usage Notes

  • _this can be used in point inputs, enabling undirected fill to activate points based on entities.
  • _this cannot be used as the target of a value to be set via code. Instead, use the get_entity_string() function. Below is an example of using this function to set the output of a code point.
return {
  [`${get_entity_string()}.write_result.response`]: result,
  [`${get_entity_string()}.write_result.message`]: state_message
};

token_id

Unique identifier of a token. Useful when searching for a particular token.

task_id

Unique identifier of a task. A task id can be present in multiple tokens. Useful when searching for tokens related to a task.

task_execution_id

📘

conversation_id

Some platform features call for a conversation_id. task_execution_id and conversation_id are interchangeable. conversation_id is a legacy term that will be deprecated.

Unique identifier for the activation of a configuration. This id is generated when a token has an active configuration. This value is needed for certain actions, such as restarting a task.

_user

The unique identifier of the user who initiated the task, if the task was initiated by a human user.