Search…
⌃K
Links

userLastName

To return the last name of a user
This function will tell you the last name of the current or a given user.
This refers to the last name that is on file in the profile of the user, not the display name.

Syntax

userLastName()
userLastName(user)

Return

string

Examples

userLastName() To return the last name of the current user.
1
userLastName()
Result: Rogers (if Steve Rogers from the Avengers is currently using the database)
userLastName(myUser) To return the last name of a given user.
Select Captain America in the user field Superhero.
1
userLastName(Superhero)
Result: Rogers
(if Captain America is selected in the User field)

See also

user, which returns the current or a specific user.
userFirstName, which returns the first name of a user.
userFullName, which returns the full name of a user.
Last modified 1mo ago