I have been trying to get the customer's list of address and phone numbers using CustomerConnector. I searched for a solution on the community but didn't get any relevant question. Here is my code which I'm using to get those details,
mCustomerList = customerConnector.getCustomers(); Log.d(CUSTAG, "Customer Name : " + customerList.get(i).getFirstName() + " " + customerList.get(i).getLastName()); List<PhoneNumber> phoneNumberList = mCustomerList.get(position).getPhoneNumbers();List<Address> addressList = mCustomerList.get(position).getAddresses();Log.d(CUSTAG, "Phone : " + phoneNumberList.size()); Log.d(CUSTAG, "Address : " + addressList.size());I was able to get the FirstName and LastName quite easily but both the list size is always zero. I know it can be done using the customer's API but I wanted to try it using the CustomerConnector.
Please advice.