This is my code. I have to set the default value for Account
fields like Name ,Phone etc...but it shows some error.
trigger setDefaultAccountValues on Account (before insert, before update){
for (Account acc : trigger.new){
acc.Name ='xxx';
}
}
The error is:
Error: Compile Error: Variable is not visible: name at line 5 column 9
How to resolve this?