Reference > Expressions > Built-in Functions > System Functions > GetUserField

GetUserField

Returns the field value of the specified user (if a RecID is supplied) or for the currently logged-in user (if no RecID is supplied).

Syntax

GetUserField(fieldName, recId)

Enabled for

Search/Dashboard No
Business Rules Yes
Quick Actions Yes
Workflow Objects No
Reports No

Parameters

fieldName The name of the field for which to get the value.

recId

(Optional). The RecID of a specific user instance. Defaults to the currently logged-in user.

Return Value

Text field.

Example

$(GetUserField("DisplayName", Owner_Valid))

This example gets the display name field of the user who is the owner of this business object, assuming that there is an owner relationship and that the owner is a validated field.

 

$(GetUserField("PrimaryEmail"))

This example gets the primary email field of the currently logged-in user.