• nikki goud
  • NEWBIE
  • 20 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 8
    Replies
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;
HI
 i crete one formula field for find the age of student in that i wrote dis (YEAR(TODAY())-YEAR(DOB__c) Formula
 now i get age in years
next one more formula fiedls for months in that i wrote dis MONTH(TODAY())-MONTH(DOB__c) formula and days for DAY(TODAY())-DAY(DOB__c).
I get perfect answers but my requirement is in need years months days in one formula field ...
what formula i can write send answer any one please
HI

how can i find the student present age(years ,months and days)
I create one USA record type in student object. when iam creating new record i choose usa record then in that country field is showing what i created in pick list that all countries are showing . but now my requirement is when i choose usa type record means automatically usa country only display in the country field like uk means uk and india means india like that......is it possible in salesforce
what is the relation ship between accounts and contacts
trigger createNewAccountOpportunity on Account (after insert) { 
    List<Opportunity> listOpportunities = new List<Opportunity>();

    for (Account oAccount : trigger.new) {
        Opportunity oOpportunity = new Opportunity();
        oOpportunity.Name = oAccount.Name;
        oOpportunity.AccountId = oAccount.Id;
        oOpportunity.Stage = ‘Closed Lost’;
        oOpportunity.CloseDate = System.today() + 30; //Closes 30 days from today

        listOpportunities.add(oOpportunity);
    }

    if (listOpportunities.isEmpty() == false) {
        Database.update(listOpportunities);
    }
}
hi

i need a validation rule for indian driving licence
I create one USA record type in student object. when iam creating new record i choose usa record then in that country field is showing what i created in pick list that all countries are showing . but now my requirement is when i choose usa type record means automatically usa country only display in the country field like uk means uk and india means india like that......is it possible in salesforce
what is the relation ship between accounts and contacts
Hi Team,
I am a beginner in salesforce.I have created a profile in salesforce.com.And I logged in  through java client application with that user name,password and security token. And I created sales force  users from my java application. How can they login without access sales force.Means they don't know about the
security token.They have only the user name and password. The sales force authentication  is only possible through my client application. My question is Is there any way to login without security token?