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

  • 1
  • Question
  • Updated 4 months 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

  • 390 Points 250 badge 2x thumb

Posted 4 months ago

  • 1
Photo of Mike Dwyer

Mike Dwyer, Champion

  • 3,992 Points 3k 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.