1 SFConnectionController controller = new SFConnectionController(); 2 LoginResult loginResult = controller.login(username, password, securityToken); 3 Response response = controller.query('select Name, Email, Phone, MailingCity, MailingCountry from Contact', loginResult); 4 for(Record row: response.data.records){ 5 string Name = row.getFieldValue('Name'); 6 string Email = row.getFieldValue('Email'); 7 string Phone = row.getFieldValue('Phone'); 8 string MailingCity = row.getFieldValue('MailingCity'); 9 string MailingCountry = row.getFieldValue('MailingCountry'); 10 }