I've create a function that pulls Id to a set, and a Map to contact that pulls id and in the SOQL statement compare the whoId from Task to Contact.ID then concatenate(Task.subject, Task.Type, Contact.Name) 3 fields to one custom field. I'm not sure how to proceed from here?
public void ListOfTaskIds(list<Task> TaskEventList) {
Set<ID> whoIdSet = new Set<ID>();
for(Task e: TaskEventList){
if(e.whoId != null){
whoIdSet.add(e.WhoId);
}
}
System.Debug('>>>>>>> the value of:' + whoIdSet);
Map<ID, Contact> contactMap = new Map<ID, Contact>([select id, name from contact where id in :whoIdSet]);
}