Assume I have 10 milestones
running on the Case under a single Entitlement Process
.
- how can we check if all milestones are completed on that case ?
- How can we calculate the Total ElapseTime and show it in the Custom Field on the case layout ? Do I need to used formula field or the trigger logic ?
- I have End-to-end SLA and some SLA within the main SLA. In order to calculate the ElapseTime of the SLA, I only need to consider the main SLA (not other SLA/Sub SLA which are running with main SLA). How can we differentiate those SLA based on Category & SubCategory ? Do I need to write whole logic trigger ?
Any guidance around this ?
Best Answer
You could query and check
isCompleted
valuesYou need to trigger an
after update
trigger, when the status is getting completed then fire this query and update that custom field.Yes, you need to write logic in trigger. To retrieve milestones based on Category and SubCategory use this query: