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

EmailMessage customization
Hi,
I have Custom Email button in a Custom object. I am using standard emailAuthor page in this button. After sending email using buttton, Activity history of Case is getting updated with the email. For this I have written a trigger on Activity to swap activity. Now I need to populate the Email relatedlist of case also while sending email from the custom button of custom object. Here Case is lookup in the custom object.
Kindly help!!!!!
Regards,
Animesh
I have Custom Email button in a Custom object. I am using standard emailAuthor page in this button. After sending email using buttton, Activity history of Case is getting updated with the email. For this I have written a trigger on Activity to swap activity. Now I need to populate the Email relatedlist of case also while sending email from the custom button of custom object. Here Case is lookup in the custom object.
Kindly help!!!!!
Regards,
Animesh
I am thinking the following could help you achieve this:
Create a trigger on Task object such that when ever an email is sent from custom object, a record is created in EmailMessage Object whih is related to the case associated to the custom object record:
something similar with code:
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008um5IAA