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

Error: Compile Error: Method does not exist or incorrect signature: [Account].adderror(String) at line 7 column 12
Hi,
I am new for salesfore, and I got this error please solve it
trigger TriggerAccount on Account(before insert)
{
for(Account a :Trigger.New)
{
if(a.AccountNumber==null)
{
a.addError('Sorry');
}
}
}
I am new for salesfore, and I got this error please solve it
trigger TriggerAccount on Account(before insert)
{
for(Account a :Trigger.New)
{
if(a.AccountNumber==null)
{
a.addError('Sorry');
}
}
}
Thanks
Shashikant
It look like you have one Apex class with Account name ? If yes then please rename apex class or delete and then try above trigger again,
Please let us knw if this will help u
Thanks
Amit Chaudhary