You need to sign in to do that
Don't have an account?
Reddy
How to Fetch the Account Records from Account Object Using SOQL
List<Account> la = [SELECT Id,Industry,Name,Rating FROM Account LIMIT 10];
if(la.size() > 0)
{
system.debug('Records Count….: '+ la.size());
for(Account acc: la )
{
system.debug(acc.id + ' —> ' + acc.Name + ' —> '+ acc.Rating + ' —> '+ acc.Industry);
}
}
this is the error
Illegal assignment from List<Account> to List<Account>
if(la.size() > 0)
{
system.debug('Records Count….: '+ la.size());
for(Account acc: la )
{
system.debug(acc.id + ' —> ' + acc.Name + ' —> '+ acc.Rating + ' —> '+ acc.Industry);
}
}
this is the error
Illegal assignment from List<Account> to List<Account>
All Answers
what is that found '<EOF>' , List<Account> to List<Account>
just tell me sir
Thanks
maybe In your organization somewhere you have created a class named "Account". Thats why the compiler is not able to understand that it is standard Object Account or the class created by you. Please rename your class if you have,
in workbench site is working but in ConsoleApplication not working
Thanking you sir