You need to sign in to do that
Don't have an account?
Selva
how to check the profile thru trigger
Hi,
Is it possible to check the user who is performing update on any account pages is System Administrator or something else?
I used the below code but failed to show the particular user role who is performing the update on each Account page. It keeps getting changed,when i do update as the same role(system admin)
Code:
trigger tocAccountTrigger on Account (before update) { for (Profile p : [select name from Profile]) if(p.name=='System Administrator') {
//do something } }
Look for the documentation under UserInfo