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
Manju_BNManju_BN 

Closing all pending tasks

How can I close all the pending tasks of a record (belongs to custom object) when ever its Status is changed

Jeff MayJeff May

You would need a trigger for that.  In the trigger on the custom object, you'll need to get a list of all pending tasks, set their status to closed, then update the task records.