Entity expression examples
Acquiring an entity object and referencing its data member
'Hi, {Public_Users(a08baf52-de7a-4a39-a567-c6d7e2ab1dc8).Name}, welcome to our forum!'
Output
'Hi, John Doe, welcome to our forum!'
Breakdown
'Hi, '
{Public_Users(a08baf52-de7a-4a39-a567-c6d7e2ab1dc8).Name}
- Acquires an object of type 'User' from the
Public_Users
entity with the provided 'Id'.
- Follows the reference path:
- Evaluates to 'John Doe'
', welcome to our forum!'
'The parent group of this product is <{General_Products_Products(1908c05a-790a-42be-a8d8-e850798b5530).ProductGroup.Parent.Name:en}>.'
Output
'The parent group of this product is <Materials>.'
Breakdown
'The parent group of this product is '
{General_Products_Products(1908c05a-790a-42be-a8d8-e850798b5530).ProductGroup.Parent.Name:en}
- Acquires an object of type 'Product' from the
General_Products_Products
entity with the provided 'Id'.
- Follows the reference path:
- Evaluates to
MultilanguageString
object
- Format specifier finds
:en
and applies it.
- Returns
"Materials"
'>.'
#Error# Not existing entity
'Not_Existing_Entity(4ab5e1ee-c613-4f6c-aa02-eb478c99bc80)'
Output
"#Error: Entity 'Not_Existing_Entity' not found#"
Breakdown
'Not_Existing_Entity(4ab5e1ee-c613-4f6c-aa02-eb478c99bc80)'
- Acquires an object from the
Not_Existing_Entity
entity with the provided 'Id' --> Fail. Entity does not exist
- Returns error.
#Error# Not existing entity object 'Id'
'Public_Users(ba8469d7-4854-4ff1-a5ac-a0a60414b061)'
Output
'#Error: Entity object 'ba8469d7-4854-4ff1-a5ac-a0a60414b061' not found#'
Breakdown
'Public_Users(ba8469d7-4854-4ff1-a5ac-a0a60414b061)'
- Acquires an object of type 'User' from the
Public_Users
entity with the provided 'Id' --> Fail.
Could not find an object with such an Id.
- Returns error.