How do I get the current user id in a lighting flow? - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Tim SzczesuilTim Szczesuil 

How do I get the current user id in a lighting flow?

I'm creating a Screen Flow that among other updates, will let a user take ownership of a Lead. To do this I need to be able to get the user's id so I can assign it to the Owner id of the record. I've alread tried to assign {!$User.Id} and several variations, but what gets assigned to the variable is the literal "{!$User.Id}" and not the users actual id.

Any suggestions on how to let the running user take ownership of the record?
 
Best Answer chosen by Tim Szczesuil
Tony TrinhTony Trinh
Hello Tim,

You can use a formula to get the ID of the running user. Please refer to this previous question:
https://success.salesforce.com/answers?id=9063A000000ZptzQAC