AnsweredAssumed Answered

Replace everything before \ or just get login id?

Question asked by stempb on Jul 11, 2017
Latest reply on Nov 13, 2017 by jagadeeshkarri

Userprofile  function on a form returns something like

 

DOMAIN\LoginID123

 

I would to get just the login id part put nothing seems to be working for me.

 

I tried:

 

replace(userProfileLookup(ctrlRequestor,"AccountName"),"^[^\\]*\\","")

 

and

 

replace(userProfileLookup(ctrlRequestor,"AccountName"),"^[^\]*\","")

 

but both give me errors.   Any other character that is in the string works fine.   It is the \   character that I am having issues.

Outcomes