Expressions for Aura Sites
You can access property values and other information to pass into a component's attributes with expressions.
An expression is any set of literal values, variables, subexpressions, or operators that can be resolved to a single value. Method calls aren’t allowed in expressions.
The expression syntax is {!expression}, where expression is a placeholder for the expression.
These expressions display the authenticated user’s information, images associated with data categories, or record information on a site page.
Expression | Displays |
---|---|
| Combined first and last name of the user, as displayed on the user detail page. |
| First name of the user, as displayed on the user edit page. |
| Last name of the user, as displayed on the user edit page. |
| Administrative field that defines the user’s login. |
| Salesforce ID of the user. |
| Email address of the user. |
| Name used to identify the user in a site. |
| Account ID associated with the user. This expression displays a valid account ID for partner and customer users. For all others, it displays '000000000000000'. |
| Account ID associated with the effective account. This expression displays a valid account ID for partner and customer users. For all others, it displays '000000000000000'. |
| Image associated with the data category in a search component. |
| Image associated with the data category in a subfolder in a search component. |
| 15-digit record ID on object pages. |
| Expression that returns the HTML-encoded search term in the Aura-based standard search page. |
Last updated