Skip to main content
Known Participant
Jul 18, 2023 2:15 PM UTC
Question

Best way to Implement page access log

I have a requirement to log user activity on a page on page load. What would be the best way to do so. As we don't have any feature to invoke smart services on page load, not sure how to do that.

    9 replies

    sanchitg0002
    Inspiring
    Jul 18, 2023 2:21 PM UTC

    Wdym by

    log user activity on a page
    Known Participant
    Jul 18, 2023 2:30 PM UTC

    Did not understand, can you please explain a bit ?

    stefanhelzle0001
    Brainy
    Jul 18, 2023 2:27 PM UTC
    Known Participant
    Jul 18, 2023 2:38 PM UTC

    No, my requirement is to log user info along with some other data only on page load.

    stefanhelzle0001
    Brainy
    Jul 18, 2023 2:45 PM UTC

    And for what purpose? I mean, what do you want to do with that data?

    Inspiring
    Jul 18, 2023 3:21 PM UTC

    Hi,
    I understand, sometimes in highly regulated environments there is the policy to even capture if a user has only looked at a page.
    In my opinion, the best way to do this is to populate a local variable (which is not used further more in the User Interface).

    local!activity: a!startProcessModel (userID: , UserInterfaceName) as parameters. This process model writes into a database table for audit purposes.

    If you have further needs, after the user submits the User Interface, in the process model you can write the content of changed CDTs to an audit table. 

    I hope this gives some ideas.

    stefanhelzle0001
    Brainy
    Jul 18, 2023 3:24 PM UTC

    You are aware that the function "startProcessModel" does not exist? And you cannot start a process without user interaction.

    Inspiring
    Jul 18, 2023 4:02 PM UTC

    Of course, I missed one step, my bad. We are calling with the above approach an Integration object and the webAPI is writing to the database tables the desired information.