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
oracleoracle 

Compile Error: line 3, column 1: Illegal assignment from Id to SOBJECT:Account

/*

Field LabelAccount NameField NameAccount
Data TypeLookup(Account) Contacts
Help Text

*/

Account t = new Account(name='laogaonihao');

Contract con = new Contract();

con.Account = t.id;

 

why contract insert?

 

thanks

Best Answer chosen by Admin (Salesforce Developers) 
oracleoracle

Has been resolved.

 

property Account change AccountId