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
Melody LinMelody Lin 

How to make auto-completion of case milestones via Apex code?

Hi Everyone, 

I am the system admin and have zero background of Apex code or any coding knowledge. I have a request associated to Apex code, and I need your help to guide me how can I add the code without breaking the system.

We want to auto mark the 1st milestone completed when the 1st email sent out by our support agents. I found the code of "trigger on email message" from this link: https://developer.salesforce.com/page/Auto-completion_of_Case_Milestones_with_Triggers.
It will be helpful to know:
  • Where to add this code or the steps to add this code?
  • How to modify the code that will work for the request?
Thank you for your great help in advance!!