Is there a way to set a text field to the Salesforce current user?

  • 1
  • Question
  • Updated 1 year ago
I have a UI only text field that I would like to set to the salesforce current user.   Is it possible?
Photo of Ambrose Alward

Ambrose Alward

  • 432 Points 250 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Mike Dwyer

Mike Dwyer, Champion

  • 4,736 Points 4k badge 2x thumb
{{$User.userName}} should do it. I don't think you would need a model on the User object, but that might let you extend or revise your logic.