Skip to main content
Nintex Community Menu Bar

remove claim and domain from current user

  • April 13, 2017
  • 3 replies
  • 47 views

Forum|alt.badge.img+7

I have a people picker field (called EmployeeName) in my form that brings in the current users preferred name. I then have a calculated value field that matching EmployeeName to bring in the user name. However the user name comes in with the claim token and domain name when all I want is the user name. I have tried different options in the replace function of the calculated value field and I am close but cant get rid of the | does anyone know how to do this??

I tried using replace(EmployeeName, "i:0#.w|admhn"

3 replies

Forum|alt.badge.img+8

Use the formula: subString(replace(EmployeeName,"i:0#.w|domain",""),2,length(replace(EmployeeName,"i:0#.w|domain","")))

201727_pastedImage_1.png

Outcome:

201728_pastedImage_5.png


Forum|alt.badge.img+14
  • Scholar
  • April 14, 2017

you have to escape these characters since they are given special meaning.

use

replace(EmployeeName, "i:0#.w\|admhn\\", "") 

Forum|alt.badge.img+7
  • Author
  • April 14, 2017

Thank you so much!!!