function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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)?