All I have a workflow where I set the Employee name into a variable by using the Employee Name (people picker field) display name option. I have been receiving requests to send emails and only use the first name (not first and last). Is there an easy way to do this?
if your display names follow some common pattern like 'FirstName LastName' you can parse it out of there eg. using regular expression.
if not you can use query LDAP action to get it from AD.
+7
My Display name is first name and last name. How can I get just first name with the parse?
ok, so I will assume the first word of Displayname is always first name. then following regex should work
^w+
+5
Use the action Query User Profile to get the user's first name.
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.