• Pradeep Pradhan 21
  • NEWBIE
  • 30 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 47
    Questions
  • 3
    Replies
Hello everyone 
iam facing problem to authorize my org on vscode . iam getting the above error when connecting to org.please help me solve this issue.
hello everyone i have tried to solve but facing issue to generate lead .please help me 
hello i have solved this way. please help me if u have any other best possible ways.
      List<Account> accList = new List<Account>();
        for(Integer i=0; i<250; i++){

            Account acc = new Account();
            acc.Name= 'AccName'+ i;
           // acc.FEMA_ID__c = '123456789' +i;
            accList.add(acc);
        }

        insert accList;

        // Create Contacts
        List<Contact> conList = new List<Contact>();

        for (Account acc : accList){

            Contact con = new Contact();
            con.FirstName = 'fName';
            con.LastName = 'lName';
            //con.FEMA_ID__c = '123456789' +i;
            con.Accountid = acc.id;
            conList.add(con);
        }   
        insert conList;
    }

}
hello everyone i have tried this code . please help me out other best possible sloution


public class multicolumn_sort {
    public static void main(){
        list<Account> accList=new List<Account>();
accList=[select Name,(select Name from Contacts ) 
         from Account] ;
for(Account acc:accList){
    for(Contact con:acc.Contacts){
      System.debug('acc List-------->'+con.Name);
    }
}
    }
}