Returns the current user logged in to the application.
It is only applicable in situations where there is a user context, such as when rendering an interface, displaying a report, or executing a process task form.
If there is no user context, such as when used in an expression in a node output,
loggedInUser() returns "Administrator".
In non-SAIL task forms that do not follow an activity-chained flow,
loggedInUser() can be populated by selecting the Refresh default values every time the task form is viewed checkbox on the Other tab of the activity. The checkbox does not need to be selected when an interface is used as it is automatically applied.
The function can be used to filter process reports for the current user. Cast the data to the User data type with the
loggedInUser() cannot be used to define a column of process report data or in a process event.
You can copy and paste these examples into the Expression Rule Designer to see how this works.
Identify if the logged in user is in an array of users using the
Given a rule input of
ri!userArray, check if the logged in user is in the array using the
This function can't be evaluated in the expression editor.
tp!owner to the User data type with the
touser() function so that there's no error when comparing with
loggedinuser() as soon as a task is accepted. Not doing so results in the error message
Cannot compare incompatible operands of type User and type User id.
Can be used with Appian Portals if it is connected using an integration and web API.
|Sync-Time Custom Record Fields
|Real-Time Custom Record Fields
Custom record fields that evaluate in real time must be configured using one or more Custom Field functions.