System variable expressions
They are case InsENSitiVE and always start with $
, providing additional data unrelated to a specific object or its state. For example, if you need to get the current date, you can do it directly via the system variable $date
.
// Input
'{$date}'
// Output
'01.01.2021'
// Input
'{$datetimeutc}'
// Output
'01.01.2021 15:00:00'
// Input
'{$rooturl}'
// Output
'db.myerp.net'
// Input
'{$user.Name}'
// Output
'John Doe'
// Input
'{$user.Name}'
// Output
'John Doe'
Note
See System variables for more information and all supported system variables.
If a system variable exists but is null, the expression will evaluate to an empty string.
// Input
'{$role.Name}'
// Output
''
If a system variable doesn't exist or its further reference is invalid, the evaluation will return an error.
// Input
'{$yesterday}'
// Output
'#Error: System Variable '$yesterday' not found#'
// Input (FullName does not exist)
'{$role.FullName}'
// Output
'#Error: Attribute 'FullName' not found#'
Note
More details and examples are available in the Examples section.