+ Start a Discussion

Error: Compile Error: Invalid type: Account1 at line 3 column 34

// This class updates the Hello field on account records that are passed to it.
public class MyHelloWorld {
public static void addHelloWorld(Account1[] accs){
for (Account a:accs){
if (a.Hello__c != 'World') {
a.Hello__c = 'World';
Gino BassoGino Basso
Shouldn't Account1 be Account (unless you've created a class Account1)?