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
Lucy YuanLucy Yuan 

Case status age

i need the age of every case status. The retention time for every status.

 

i.e.

Someone changes case status to "status 1" at 2011/01/07 16:00.

He changes case status to "status 2" at 2011/01/07 19:00.

At last he changes case status  again to "status 1" 2011/01/08 16:00

 

At 2011/01/08 17:00 ,  the currect "status 1" age should be 4 hours. "status 2" age should be 21 hours.

 

 

Could please give me some solutions to implement this function `?

 

Thanks

 

Lucy

Shanghai, China     

marioluisscmarioluissc

Hi,

 

There is a standard field called "Duration" in Case. It calculates the duration of each case status.

Lucy YuanLucy Yuan

Thanks !

 

but how to get this "Duration" in apex codes??could you please give me some example?

i tried to find this field, but seems it only display in the report .   This field belongs which object???