Skip to main content
Nintex Community Menu Bar

nintex workflow get first name only

  • Jul 20, 2017 10:13 PM UTC
  • 4 replies
  • 75 views
  • Translate All

Forum|alt.badge.img+7

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?

205779_pastedImage_1.png

4 replies

Forum|alt.badge.img+14
  • Scholar
  • Jul 21, 2017 2:41 PM UTC

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.

Translate

Forum|alt.badge.img+7
  • Author
  • Jul 21, 2017 5:23 PM UTC

My Display name is first name and last name. How can I get just first name with the parse?

Translate

Forum|alt.badge.img+14
  • Scholar
  • Jul 24, 2017 9:01 AM UTC

ok, so I will assume the first word of Displayname is always first name. then following regex should work

^w+‍

205866_pastedImage_2.png

Translate

Forum|alt.badge.img+5
  • Aug 31, 2017 11:43 PM UTC

Use the action Query User Profile to get the user's first name.

Translate