Skip to main content
I have a process builder that creates a new case when a case is reopened. Can I move the activity history of the case that is set to a status of reopened to the case that this process creates with my process builder?

 

 
3 respuestas
  1. 23 abr 2020, 19:57
    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
0/9000