Posted: 1 Feb 2017 14:40 EST Last activity: 2 Feb 2017 15:02 EST
Declare Trigger Not Catching Saves of System-User-Recents
Because PRPC does not catch the sign-off time of a user if they do not use the 'log out' button, we have a requirement to capture the time of the user's last action as their 'log out time'.
To do this, I made a declare trigger rule in the System-User-Recents class, and when an instance is saved it should launch an activity that fetches the user record for the recent and update the logoff time to the current time.
However, after checking out and in several rules arbitrarily and generating several entries in the recents table, I see that my trigger is never firing. Can declare triggers not see recents being saved?
***Updated by moderator: Lochan to update Categories***
I'm not familiar with what you are trying to fire the trigger off of, but there are ways to tell the system not to fire declaratives. The easiest way is to have, on the Security tab of an activity, a Usage of type onChange. You might want to confirm that something like that isn't happening.