You need to sign in to do that
Don't have an account?
ilewi121
Auto-Complete CaseMilestones on Case Create
Use Case:
When a user creates a case, an email response is delivered to a customer. This email should complete a "first response" milestone.
Technical Issue:
Trigger logic on the Case or EmailMessage objects cannot access CaseMilestones because they are created later asynchronously. I tried @Future calls, but CaseMilestone records still do not exist. A combo of Batch Apex Jobs scheduled from Triggers will successfully update CaseMilestones, but this is far from ideal.
Has anyone come across a solution to the need for immediate access to CaseMilestone records? (Some other use cases come to mind: Auto-complete "resolution" milestone if case is closed on create.)
When a user creates a case, an email response is delivered to a customer. This email should complete a "first response" milestone.
Technical Issue:
Trigger logic on the Case or EmailMessage objects cannot access CaseMilestones because they are created later asynchronously. I tried @Future calls, but CaseMilestone records still do not exist. A combo of Batch Apex Jobs scheduled from Triggers will successfully update CaseMilestones, but this is far from ideal.
Has anyone come across a solution to the need for immediate access to CaseMilestone records? (Some other use cases come to mind: Auto-complete "resolution" milestone if case is closed on create.)
Here are some triggger examples as well:
https://success.salesforce.com/ideaView?id=08730000000HS83AAG