Expressions in Dawiso let you combine static text with dynamic values to create content that automatically adapts to context. You can use them in various places, such as email or in-app notifications, or when setting new attribute values through automations.
- Static text: Fixed text that always appears exactly as you write it.
- Dynamic expressions: Placeholders enclosed in curly brackets
{ }that Dawiso replaces with real data based on the context in which the expression is used.
Dynamic Expression Structure
Mandatory: {{context_variable}.selector()}
Optional: {{context_variable}.selector().function()}
| Expression | Description |
|---|---|
| Context Variables | Context variables identify the source of the data, such as {currentUser} or {comment}. |
| Selectors | Selectors define what information to retrieve from a context variable, such as a related object (.parent()) or a specific value ( .name(), .link() ). Examples: {{currentUser}.link()} = Returns a hyperlink to the user who was selected in the automation stream., {{currentObject}.parent().link()} = Returns a hyperlink to the parent object. |
| [Optional] Functions | Functions apply additional processing or formatting to the result of the operation ( .add(x)). |
Example dynamic expressions
Example 1
Example expression
Standard classification: <b>{{currentObject}.attribute('standard_identificator').toUpper()}</b>
Input value
standard_identificator= gdpr
Transformed output
- Standard classification: GDPR
Example 2
Example expression
The year-over-year growth rate is <b>{({currentObject}.attribute('current_year_revenue'). add({currentObject}.attribute('previous_year_revenue'))). divide({currentObject}.attribute('previous_year_revenue'))}. multiply(100).round()}%</b>
Input value
current_year_revenue= 120 000 EURprevious_year_revenue= 100 000 EUR
Transformed output
- The year-over-year growth rate is 20%.
Example 3
Example expression
<i>{{currentObject}.pathName()}</i>
Input value
- Parent 1 = Business Domain
- Parent 2 = Data Product
- Object name = Customer Table
Transformed output
- Business Domain/Data Product/Customer Table
Example 4
Example expression
{{currentOrigin}.name()}
Input value
- Object of origin = Financial KPIs
- Current object = Quarterly Revenue KPI
Transformed output
- Financial KPIs
HTML tags are supported for text formatting in email notifications and attribute values.
In in-app notifications (via WebSocket), tags are ignored and the text is displayed without formatting.