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
Gaurav GulanjkarGaurav Gulanjkar 

Stop case milestone upon case closed

I am in a situation where if case is changed to closed, and a picklist field is "ZA", query all the open milestones, if any, close those open milestones. 
Any thoughts on how to achive this. 
NagaNaga (Salesforce Developers) 
Hi Gaurav,

Please see the below code

User-added image

1.https://developer.salesforce.com/page/Auto-completion_of_Case_Milestones_with_Triggers

2.https://developer.salesforce.com/page/Auto-completion_of_Case_Milestones_with_Triggers

3.https://developer.salesforce.com/page/Auto-completion_of_Case_Milestones_with_Triggers

Please see the aboce links for more info

Best Regards
Naga kiran