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:
1st condition
WHEN
Person.PreferredName == Person.PreferredName.IsNullOrEmpty
This does not appear to be valid unless I have either IsInsert && or IsUpdate &&
THEN
Person.LastName + ', ’ + Person.FirstName
2nd Condition
WHEN
Default
THEN
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.