OriginalPostID-83588
Discussion posts and replies are publicly visible
Hello Dhavals,
You can use -
user(loggedInUser(), "username") - to get the user name of the current logged in user.
user(loggedInUser(), "firstName") - to get the firstName of the current logged in user.
Thanks You
Bibhuti
username is not working only firstname is working
username returning the email id itself
Hi Richa, what were you expecting for username?. username can be email id. we often keep email Id as username and it totally depends how a user was created. You can check any user's username in Designer also just to verify whether you are getting correct userName or not.
What you all need is this thing
(user(LoggedInUser(),"firstName") & "." & user(LoggedInUser(),"lastName"))
PrateekKhanna said:(user(LoggedInUser(),"firstName") & "." & user(LoggedInUser(),"lastName"))
nooooooooooooo
I thought they might want to join to create username , since it's giving emails by default.
they asked for "logged in username". this will always be predetermined for any particular viewer - the only thing anyone needs here is loggedInUser(), or if it must be a string, toString(loggedInUser()).