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

How to write trigger to update Response time a custom/time field on case when a mail is send from case?

Hi i am just new to  salesforce can anyone help . i would like to write a trigger which update response time on response__c field (custom date/time field ) when a mail is semd from case..
You would write a trigger on the Task object and look for one that starts with Email and then update the case based on the WhoId.  If you need additional information on how to write this trigger, I suggest that you try the Trailhead module [1] on triggers and read over this blog post [2].  If you have code that you have written and have specific issues or what suggestions how how to make it better, please feel free to include your code here.

NOTE: When including code please use the "Add a code sample" button (icon <>) to increase readability and make referencing code easier.