nintex workflow get first name only

  • 21 July 2017
  • 4 replies
  • 21 views

Badge +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

Userlevel 5
Badge +14

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.

Badge +7

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

Userlevel 5
Badge +14

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

^w+

205866_pastedImage_2.png

Badge +5

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

Reply