I'm doing a query which returns always 1 record, but I need to iterate over the fields from that list, how can I do that? I was trying to do the way below but this doesn't work, I really need to iterate over it.
List<Contact> contactList = [SELECT contactAtribute1__c, contactAtribute2__c from Contact where id = :contactId];
Contact atributeFields = contactList[0];
obs: There are more fields then the query above, that is just an example.