You need to sign in to do that
Don't have an account?
deepak1.3956330618074822E12
Adding Case comments in javascript that invokes the mail client
I have difficulty in getting the case comments to the body of the email when invoked through javascript through a button. I have a custom button called Send Email and when clicked on Send Email, it opens the email client (In my case outlook). The To, CC, Subject are all filled through field reference in the javascript but i am not able to fill the body of the email with the last case comment that is public.
The javascript (Onclick Javascript under custom button) i have is as below
javascript:location.href='mailto:{!Contact.Email};{!Case.Additional_To_Emails__c}?CC=support@aryaka.com&SUBJECT=[{!Case.CaseNumber}] [{!Case.Subject}][{!Case.Ref_ID__c}] &BODY={!Case.Last_Case_Comment}';
{!Case.Last_Case_Comment} is not getting filled in the body of the email. Any suggestions to make it work?
Regards
Deepak
The javascript (Onclick Javascript under custom button) i have is as below
javascript:location.href='mailto:{!Contact.Email};{!Case.Additional_To_Emails__c}?CC=support@aryaka.com&SUBJECT=[{!Case.CaseNumber}] [{!Case.Subject}][{!Case.Ref_ID__c}] &BODY={!Case.Last_Case_Comment}';
{!Case.Last_Case_Comment} is not getting filled in the body of the email. Any suggestions to make it work?
Regards
Deepak
If no then you can try creating a custom field, Last_Comment__c and get it populated every a case commnet created (by workflow on case comment).
Thanks,
Pavan
Regards
Deepak
Can you please check just putting "test" in Last_comment and click send email?
Regards
Deepak