SureshKekan / sfdc-oauth-playground

Automatically exported from code.google.com/p/sfdc-oauth-playground
0 stars 0 forks source link

Apex-Trigger -Showing error -'Type is not visible: account ' #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
trigger AccountDelete on Account (before delete) {
    for(account a: trigger.old)
     {
    if(a.Name!='todelete')
      {
      a.addError('You Dont have access to delete this account');
      }
  }
 }
.......I am getting an error 'Type is not visible: account at line 2 column 
7'...What it means i cant understand.Can anyone provide me solution

Original issue reported on code.google.com by janake...@gmail.com on 9 Dec 2011 at 12:42