hi
you can try this code:
List<Position__c> newsumrecords = new List<Position__c>();
for (Contact con : fullcontacts)
{
map<Date, set<Decimal>> mrns = conid2datemapmap.get(con.Id);
for (Date d : mrns.keyset())
{
Position__c refent = new Position__c(
Referring_Physician_del__c = con.Id, FSC__c = ‘None’, Service_Date__c = d, Count_of_MRN__c = mrns.get(d).size());
newsumrecords.add(refent);
debuglog += ‘<br/>’ + (newsumrecords);
}
}
Thanks