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
nikki goudnikki goud 

Variable does not exist: Name

hi to all

i wrote below code for insert a record in Account object .
but i got error that is "Variable does not exist: Name.

my appex code is 

Account acc=new Account();
acc.Name ='Anithagoud';
acc.Parentid='00190000013YcZh';
acc.accountnumber='3032837';
acc.site='Anitha';
acc.Type='Prospect';
acc.industry='Education';
acc.annualrevenue=500000;
acc.rating='cool';
acc.phone='9392229859';
acc.fax='585485';
acc.website='www.educomp.com';
acc.sic='hello5845hello';
acc.ownership='Private';
acc.dunsnumber='1258h6';
acc.billingstreet='Panjagutta';
acc.billingcity='HYderabad';
acc.billingstate='Telangana';
acc.billingpostalcode='500084';
acc.billingcountry='India';
acc.shippingstreet='Panjagutta';
acc.shippingcity='Hyderabad';
acc.shippingstate='Telangana';
acc.shippingpostalcode='500084';
acc.shippingcountry='India';
acc.customerpriority__c='high';
acc.active__c='Yes';
Insert acc;
Vatsal KothariVatsal Kothari
Hi Nikki,

Do you have any Apex Class Account in your org?