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
Abhi LakshayAbhi Lakshay 

Code not running for some users

I deployed a trigger in production and its running as expected when I (admin) do the associated operations, but when another user performs the operation, the code skips most of the lines.
But if the same user edits the record, the code runs correctly on 'update'.
Essentially, its skipping on 'insert' operation for the users of this profile.

Any good thoughts?
Karan Shekhar KaulKaran Shekhar Kaul
Hi Abhi,

If there are any conditions on trigger based on fields check FLS of those fields for that user's profile. Paste your trigger code.