Hi,
I want to track who uses the app and how long they open the app. I found this thread and it's useful.
I managed to patch user name, email, and duration to the SharePoint list by clicking the button to patch.
i.e- OnSelect the Button with Patch('User Log_test Melvin', {Name: User().FullName, Email: User().Email, Duration: Timer1.Value/1000})
But I want to run it in the background.
1) May I know how to start the Timer1? (Can I use App OnStart function to trigger the timer to start? If yes, pls advise how to do)
2) How to trigger the Patch function when the user closes the App?
Pls advise. Thanks and have a great day...
Regards,
Melvin

Report
All responses (
Answers (