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

Access Entitlement Process from Apex
Hi all,
I'm building a class that implements Support.MilestoneTriggerTimeCalculator - as I want to put in a few milestones with dynamic time calculation. The tricky part - I want the calculation to base on constant time defined in other milestones of this entitlement process. Within the class I can obviously access the case and the entitlement in context, but I don't see how can I reach the entitlement process behind this case and entitlement, in order to get to its other milestone and grab the integers for the dynamic calculation of my dynamic milestones.
I ran into an object called SLAProcess which I think is the entitlement process, but the workbench doesn't show it has any child relationship with milestones.
Please advise,
Many thanks,
Eran
I'm building a class that implements Support.MilestoneTriggerTimeCalculator - as I want to put in a few milestones with dynamic time calculation. The tricky part - I want the calculation to base on constant time defined in other milestones of this entitlement process. Within the class I can obviously access the case and the entitlement in context, but I don't see how can I reach the entitlement process behind this case and entitlement, in order to get to its other milestone and grab the integers for the dynamic calculation of my dynamic milestones.
I ran into an object called SLAProcess which I think is the entitlement process, but the workbench doesn't show it has any child relationship with milestones.
Please advise,
Many thanks,
Eran
[1] http://blog.deadlypenguin.com/blog/2015/07/29/service-breach-time-displaying-it-on-the-case/