Skip to main content
Participating Frequently
Apr 12, 2022 8:49 AM UTC
Question

Adding user name and current time to record on interface open?

Hello!

Apologies if this has already been answered but i am attempting to capture the current user name, date and time when they open an interface and then record this for later.

So i have:

loggedInUser()  - which with no other details gives me the current user(great) 
now() - which gives me the current time and date

I am unsure of how to tie this all together I am guessing if I use a process model I can call a rule to get this information but then I need to add this to a record type and this process would need to be fired on open of the interface?? I'm just lost right now! 

Sorry i'm a bit lost any help would be greatly apricated.

Thank you! 

    4 replies

    stewart.burchell
    Employee
    Apr 12, 2022 8:58 AM UTC

    Information can only be recorded from an interface if a User takes some sort of action. Whilst you can set the current user name and current date/time when the interface opens it can only be persisted to the database when the user interacts with the interface - they have to hit a button or change some data or some other user-event. Are you wanting to record when someone has simply opened up an interface to have a look but takes no other action?

    Participating Frequently
    Apr 12, 2022 9:05 AM UTC

    Ahh ok that is useful.

    The plan was to capture when a user last used an application which i suppose from what you are saying we would need to tie to them going into the application and then taking the first action/step.

    We might also need to redefine what counts as using the application or add an application close button

    stewart.burchell
    Employee
    Apr 12, 2022 9:11 AM UTC

    Hold that thought...whilst you cannot implement this in Designer, there is a log of when a User accesses a Record List or opens up a Record to view it. You can find this log in /audit/records_usage.csv in the 'System Logs'.