You need to sign in to do that
Don't have an account?
Mohit Kapoor
Why would a piece of code behave differently for System Admin user and a normal profile user
I have a piece of code involving multiple triggers and apex classes. The new result of this functionality is that when some conditions are met mostly stage change values, then a record is created in related bject so that we can have track of changes for specific fields.
The strange thing that is happening is that when as an admin user we do do testing, only one record is created but when we do the testing using a customer, there are 2 records being created which are duplicate. We have no idea why would a piece of code work differently for different profiles.
The strange thing that is happening is that when as an admin user we do do testing, only one record is created but when we do the testing using a customer, there are 2 records being created which are duplicate. We have no idea why would a piece of code work differently for different profiles.
http://www.infallibletechie.com/2012/08/recursive-triggers-in-salesforce.html
If this solves your problem, kindly mark it as the best answer.
Regards,
Magulan
http://www.infallibletechie.com