Access LastLoginDate in screen flow - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Adarsh GAdarsh G 

Access LastLoginDate in screen flow


Hi,
I'm not able access the field LastLoginDate on user object  in screen flows. Is there any settings I need to enable or is it a limitation?
Thanks
Best Answer chosen by Adarsh G
Ouassim KACI MAHAMMEDOuassim KACI MAHAMMED

Hi Adrsh,

You are right you can't get the LastLoginDate of the current user directly but there is a workaround so follow carefully the steps bellow 

1- create a get record element like this :

User-added image  2 -  create a formula that get the LastLoginDate from the first get record element : 

User-added image  3 -  now you can display the LastLoginDate from the Formula like bellow : 

User-added image 

Good luck