We have run into a situation where in UKG some users have a preferred name while some do not. I am trying to figure out the logic to use the preferred name if it exists or use the first name if the preferred name does not exist.
I am looking specifically at the display name in this case.
Here is what I was starting with:
Person.PreferredName == Person.PreferredName.IsNullOrEmpty
This does not appear to be valid unless I have either IsInsert && or IsUpdate &&
Person.LastName + ', ’ + Person.FirstName
Person.LastName + ‘, ’ + Person.PreferredName
I’m trying to determine the best way to setup the logic, either one statement or several
I appreciate any insight you can provide.