function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JayaJayaJayaJaya 

How to move a Task from OpenActivities to ActivityHistory when Task Status is Completed/Cancelled

Hi,

We have a requirement to move a Task from OpenActivities to ActivityHistory whenever the Status of the Task is either Completed or Cancelled. Salesforce standard behavior moves Task to ActivityHistory if its Status is Completed, how to move a Task to ActivityHistory if the Task is Cancelled?


Thanks.
kevin lamkevin lam
Edit the picklist value of Cancelled and check the Closed checkbox.
MithunPMithunP
Hi Jaya,

Update Task Status Cancelled picklist closed checkbox to checked. See below image

 User-added image

Best Regards,
Mithun.