Skip to main content
April 12, 2022
Question

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

  • April 12, 2022
  • 4 replies
  • 0 views

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
    April 12, 2022

    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?

    April 12, 2022

    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
    April 12, 2022

    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'.