function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lewis BlauLewis Blau 

After Update trigger on a User record

I wrote a trigger on the User object on the after inserted and after updated events. The trigger fires on the inset event, but not on the update event. I wrote a test class to verify and the same thing happened. Any ideas as to why? I don't see any solutions on this topic.
Prabhat Kumar12Prabhat Kumar12
You need to make sure you have included After Update event on first line of the trigger.
Derhyk Doggett -Derhyk Doggett -

Hi Lewis,
Can you include the trigger, or a snippet of it so we can take a look.

Lewis BlauLewis Blau
nevermind. found the issue.
I had copied code and had two if insert statements instead of an update.
Hey can u please share your trigger code here it will easy to understand and find the problem 
thank you