You need to sign in to do that
Don't have an account?
Trif Cristian 7
Trigger Error Variable
Hello, i have a simple trigger:
trigger TriggerA on Account (before insert) {
for(Account a : Trigger.new){
if(a.Description == NULL)
a.addError('You must add a value');
}
}
Error: Compile Error: Variable does not exist: Description at line 3 column 12. I don't understand why.
trigger TriggerA on Account (before insert) {
for(Account a : Trigger.new){
if(a.Description == NULL)
a.addError('You must add a value');
}
}
Error: Compile Error: Variable does not exist: Description at line 3 column 12. I don't understand why.
your trigger is perfect, problem is with your description field level security on account object :
open description field from account object and click on Field-Level Security button
make sure your profile have read access to all fields which you want to use in your code
Hopes it will helps you
kindly let us know if it helps you
Thanks
All Answers
your trigger is perfect, problem is with your description field level security on account object :
open description field from account object and click on Field-Level Security button
make sure your profile have read access to all fields which you want to use in your code
Hopes it will helps you
kindly let us know if it helps you
Thanks
Worked like a charm. Thank you guys! ^_^