You need to sign in to do that
Don't have an account?

How to determine what profile is running a trigger.
Hello, Is there a way to determine the Profile of a user that has 'tripped' a trigger? I would like to know if the current user is NOT a Sys admin profile then execute a certain portion of a trigger. If the person is a Sys admin profile, then execute a different piece of code in the trigger. An example would be very helpful. Thanks.
Regards,
UserInfo.getProfileId() should get you what you want.
David
Thanks David.. I'll give that a try.
Regards,