Skip to main content
LEAH Gus (Gus) 님이 #Data Management에 질문했습니다
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개
  1. 2020년 4월 23일 오후 7: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