Skip to main content

// Create the account sObject     Account acct = new Account(Name='Sown IO', Phone='866-123-1234', NumberOfEmployees=20000);    // Insert the account by using DML  insert acct;

 

Line: 3, Column: 16 Invalid constructor syntax, name=value pairs can only be used for SObjects: Account

2 respuestas
  1. 12 oct 2021, 15:37

    Great!! I was wondering why it is giving error since the code looks allright!!

0/9000