function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Adarsh G 6Adarsh G 6 

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 6
ANUTEJANUTEJ (Salesforce Developers) 
Hi Adarsh,

I was able to find an idea of accessing lastlogin date in a formula field, so I was unable to find the same in creating a formula resource in lightning flows so I used the below to achieve similar use case:

1> Create a formula resource in Flow to get the userid.

2> use get record element in flow to get the user last login.

3> you can access these fields in the record variable throughout the flow.

Below are the Screenshots for the same:

User-added image

User-added image

Link to Idea: https://trailblazer.salesforce.com/ideaView?id=08730000000Bpfw

You Can upvote the above idea so that if it reaches the necessary threshold it may be considered in the future.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.