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
Hall AnthonyHall Anthony 

Apex trigger not working for specific users only for some reason

Hi All,
We have a trigger on our case object that summarizes a number field on each related activity when that case closes.  Problem is the trigger only works for some employees for some reason. I have a debug file for a user when the trigger fails but the file its too long to post on this forum (I can only paste 32,000 characters in a post. What should i do to go about solving this issue? I have a feeling the issue is a very simple fix for someone that uderstands apex code well.

Thanks!





 
Best Answer chosen by Hall Anthony
Rajesh3699Rajesh3699
Hello Anthony,

Ensure that the user for whom the trigger is not working has the access to update case object / or the field that used to summarize.
{this even depends on the handler class in with sharing or without sharing also, since its apex which is system mode it should work ]

Also, what the error that user gets when the trigger fails..?

Hope this helps..!!!

Thanks 
Rajesh.