You need to sign in to do that
Don't have an account?
admin suresh
Error: Compile Error: Illegal assignment from LIST<Account> to LIST<account> at line 2 column 4
trigger dup on Account (before insert) {
list<account> alist=trigger.new;
}
list<account> alist=trigger.new;
}
It's saving without any error.
You can try trigger.newmap.keyset()
smaple code:
list<account> acclist=[select id, name, type from account where id in: trigger.newmap.keyset()];
Thanks,
Pratik
P.S. If this answers you question, please mark it as "Best Answer" so it will help other community members too.
Chances are that you have an Apex class named Account in your org. Rename it and try saving.
Or you can also use - list<Schema.account> alist
Regards,
Lakshmi.