0

When I try to write a trigger on my account object I am getting an error.

Error: Compile Error: Loop variable must be of type SOBJECT:Account at line 3 column 17

My code :

   trigger testingTrigger on Account (after Update) {
     for(Account ca : Trigger.New){
     }
  }

I tried with the other custom object it works but on this account it don't. Can any one out here can help me to get the solution on this issue.

1

There must be one Apex class with name 'Account'.Please rename that class and try again.

Thanks, Raviteja

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.