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

How do you auto complete a miilestone
So I have created my milestone called First Response and tried to auto complete it when I send an email to a contact associated with the account. I found a code online but does not seem to work
https://help.salesforce.com/s/articleView?id=sf.entitlements_milestones_trigger.htm&type=5
Can you help me I have copied the apex class and trigger and still nothing works
https://help.salesforce.com/s/articleView?id=sf.entitlements_milestones_trigger.htm&type=5
Can you help me I have copied the apex class and trigger and still nothing works
Create a custom field on the Milestone object called "Auto-complete on Email" of type checkbox.
Create a custom field on the Contact object called "Auto-complete Milestone" of type text.
Create a trigger on the EmailMessage object to populate the "Auto-complete Milestone" field on the Contact when an email is sent to a contact associated with an account. The trigger should look something like this:
All Answers
Do you see any errors? Also check below similar example.
https://sfdcian.com/auto-complete-case-milestones-using-flow-and-trigger/
Thanks,
Create a custom field on the Milestone object called "Auto-complete on Email" of type checkbox.
Create a custom field on the Contact object called "Auto-complete Milestone" of type text.
Create a trigger on the EmailMessage object to populate the "Auto-complete Milestone" field on the Contact when an email is sent to a contact associated with an account. The trigger should look something like this: