How to get the Maximum ActualEnd

Jul 2, 2012 at 2:30 PM

Hi, I'am creating a new query for the account form load event. the Idea is when the form load get the maximum ActualEnd from phoneCall activiti for to know how many days have passed since his last phone call.

I will compare the differente between ActualEnd and the current Date this should return days and then set the dayssincelastcall field in AccountSet.

 

Thanks.

Jul 3, 2012 at 2:13 PM

One thought is that you can get the result set in descending order of the ActualEnd field and just take the first result in that set. You can do a Order By in your Rest call.