• sateesh m 2
  • NEWBIE
  • 60 Points
  • Member since 2016

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 5
    Replies
It looks like after the Summer '17 Release, a module that I completed, Data Management, has changed and I am now trying to re-take.  I'm having difficulty clearing the first module which is importing data with the Wizard.  I am attaching the screen shots of where I am getting stuck - I'm not sure what or if I am doing something wrong (the system doesn't let me map the fields).  Any advice would be appreciated!

User-added image

User-added image

User-added image

User-added image
Im fairly new to Apex, so this question may seem mediocre but i've really just hit a wall at this point.
Below is the requirement:
Insert 2 accounts with type = 'Prospect'
Insert 2 contacts  - 1 contact Lead source = 'Phone Enquiry' - Relate to 1 account
                            - 2 Contact Lead Sorce ='Partner Referal' - Relate to 2 account 
 CHeck if(Contact Lead source = Phone Enquiry)
 Related Account type = "Installation Partner";

Below is the what i have so far:
public class AccountnContactClass{

//Create 2 account and 2 Contacts using List and Limiting the Insert DML statements
         
    
    public void AccountContactCreation(){
    List<Account> AccList = new list <Account>();
    Account ac8 = New Account();
    ac8.Name = 'Apples';
    ac8.type = 'prospect';

    Account ac9 = New Account();
    ac9.Name = 'Oranges';
    ac9.type = 'prospect';
    
    AccList.add(ac8);
    AccList.add(ac9);
    
    Insert AccList;
    
    List<contact> ContactList = new list <contact>();
    Contact Con1 = New Contact();
    Con1.FirstName = 'Tomatoes';
    Con1.LastName = 'Rotten';
    Con1.LeadSource = 'Phone Inquiry';
    Con1.accountid = Acclist[0].id;
    
    Contact Con2 = New Contact();
    Con2.FirstName = 'G2';
    Con2.LastName = 'Gatorade';
    Con2.LeadSource = 'Partner Referral';
    //Con2.accoundid = AccList[1].id;
    
    ContactList.add(Con1);
    ContactList.add(Con2);
    
    Insert ContactList;
    
}

}

 
It looks like after the Summer '17 Release, a module that I completed, Data Management, has changed and I am now trying to re-take.  I'm having difficulty clearing the first module which is importing data with the Wizard.  I am attaching the screen shots of where I am getting stuck - I'm not sure what or if I am doing something wrong (the system doesn't let me map the fields).  Any advice would be appreciated!

User-added image

User-added image

User-added image

User-added image
Im fairly new to Apex, so this question may seem mediocre but i've really just hit a wall at this point.
Below is the requirement:
Insert 2 accounts with type = 'Prospect'
Insert 2 contacts  - 1 contact Lead source = 'Phone Enquiry' - Relate to 1 account
                            - 2 Contact Lead Sorce ='Partner Referal' - Relate to 2 account 
 CHeck if(Contact Lead source = Phone Enquiry)
 Related Account type = "Installation Partner";

Below is the what i have so far:
public class AccountnContactClass{

//Create 2 account and 2 Contacts using List and Limiting the Insert DML statements
         
    
    public void AccountContactCreation(){
    List<Account> AccList = new list <Account>();
    Account ac8 = New Account();
    ac8.Name = 'Apples';
    ac8.type = 'prospect';

    Account ac9 = New Account();
    ac9.Name = 'Oranges';
    ac9.type = 'prospect';
    
    AccList.add(ac8);
    AccList.add(ac9);
    
    Insert AccList;
    
    List<contact> ContactList = new list <contact>();
    Contact Con1 = New Contact();
    Con1.FirstName = 'Tomatoes';
    Con1.LastName = 'Rotten';
    Con1.LeadSource = 'Phone Inquiry';
    Con1.accountid = Acclist[0].id;
    
    Contact Con2 = New Contact();
    Con2.FirstName = 'G2';
    Con2.LastName = 'Gatorade';
    Con2.LeadSource = 'Partner Referral';
    //Con2.accoundid = AccList[1].id;
    
    ContactList.add(Con1);
    ContactList.add(Con2);
    
    Insert ContactList;
    
}

}

 
This trigger is entitled Opportunity Trigger