1) Account acct = new Account(Name='Acme', Phone='(415)555-1212', NumberOfEmployees=100); OR
2) Alternatively, you can use the dot notation to add fields to an sObject. The following is equivalent to the previous example, although it takes a few more lines of code.view source
Account acct = new Account();
acct.Name = 'Acme';
acct.Phone = '(415)555-1212';
acct.NumberOfEmployees = 100;
Hi, does anyone have recommendations for a tool to create ERD from SFDC? We need to document objects, API names, primary key, and object relationships, etc.
I tried Schema Builder but doesn't seem to allow editing the text or display API Names.