3 Antworten
Hi Leah,
Activity history consists of tasks and events, so query those records first-:
Create list of Case Ids-CaseIds
taskList = 'select whoid,subject,status,LastModifiedDate, WhatID from task where whoid in : CaseIds
Similarly query event
Add entries to Activity history do following-:
ActivityHistory is a type of "view" object: it shows closed tasks and events that are in the past. To add new entries, simply create new Task or Event objects. Usally, calls and emails are logged as tasks with a "Completed" status (the default value)
Thanks,
Sakshi