You are here: Advanced > Expression Language > Object property expressions

How to form object property expressions

When you form an object property expression you refer to the current record by the term entity. The phrase ${entity} returns the current record itself. The phrase ${entity.Id} returns the Id property of the current record. The same Expression Language phrase can be used in business rules in a workflow, in tasks, or in notifications. In each instance, the term entity refers to the current record (for example, the current change in Change Management or the current request in Service Request Management).

The following special object instances are available:

Object Description Examples
current_user Returns the person who is currently logged in.
  • ${current_user.Name} returns the name of the current user (as a string).
  • ${current_user.is_permitted_to_domains('domain name', 'domain name'...)} returns a boolean value indicating whether the current user has permission for any of the specified data domains (true if he has permission for at least one of the domains; false if he has permission for none of them).
current_recipient Returns the person defined as the current recipient of the notification.  
current_task Returns the current task. Available for tasks only.
  • ${current_task.Urgency}. This expression demonstrates how to get the Urgency field for the current task.

  • ${current_task.Assignee.Upn}. This expression demonstrates how to get the ID of the set of people identified by the relationship Assignee (a one-to-many relationship) for the current task.

current_association_update For a many-to-many relationship, returns the current relationship. It can be used in business rules defined in process events connected with relationships (Before adding relationship, After adding relationship, Before removing relationship, After removing relationship).
  • current_association_update.association_name. Returns the current relationship name.

  • current_association_update.association_end1. Returns the record at the first end of the relationship. The phrase ${current_association_update.association_end1.Id} returns the Id of the record at the first end of the relationship.

  • current_association_update.association_end2. Returns the record at the second end of the relationship. The phrase ${current_association_update.association_end2.Id} returns the Id of the record at the second end of the relationship.

Related Topics Link IconRelated Topics