+ Start a Discussion

parsing or traversing through related list activity history

hi people,


i have a case. in that case there is a related list 'Activity History'.....

in that related list the activities are saved as tasks...i need to parse the task for getting things written in the 'body' field(in that task)..and take these entries and use it in the controller of the close case.

does any of you have any idea how to do this..


thanks in advance...




Best Answer chosen by Admin (Salesforce Developers) 

Hi Todd,


From your post it sounds like you are using a VF page to close out a case. 


The details of all the tasks are available in the Task table. you will have to query the Tasks that belong to that particular case and have a status marked as completed.


If there is something else that you are looking for, then let me know. Thanks.