You need to sign in to do that
Don't have an account?

want a trigger to capture when the first response
hi all,
I need to create a way to capture when the first response. I then need to measure how long time between when the Case was opened and when it was first responded.
I created two fields:
Time_to_First_Response__c
First_Response__c
I need to capture the first response and measure the time to first response in a trigger .
First Response is defined as when the case owner user makes any edit to the case or logs an activity against the case.
Time to First Response Calculation:
I need to NOT include when office is closed (nights, weekends, holidays) in calculation.
I need to create a way to capture when the first response. I then need to measure how long time between when the Case was opened and when it was first responded.
I created two fields:
Time_to_First_Response__c
First_Response__c
I need to capture the first response and measure the time to first response in a trigger .
First Response is defined as when the case owner user makes any edit to the case or logs an activity against the case.
Time to First Response Calculation:
I need to NOT include when office is closed (nights, weekends, holidays) in calculation.
Hi Amit,
The above code may help your problem.
Please make it as the best answer if it solves your problem
any suggestion to improve more?
Regards