function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
undercontructiondevundercontructiondev 

Assistance with OnClick Java Button on Case Object

Hi,

 

I found this code on the Training & Help site to create a custom button on a case that is supposed to notify the Created By that the case has been closed.  Instead, my button notifies the case owner, the person who the case was assigned to and the one who is clicking the button.  So essentially, the button is notifying the notifier.  What needs to change in this code to get it to notify the Created By?  I tried replacing {!Case.ContactId} with {!Case.CreatedById} and received an error.  

 

Any assistance is greatly appreciated.

 

location.replace('/email/author/emailauthor.jsp?retURL=/{!Case.Id}&p3_lkid={!Case.Id}&rtype=003&p2_lkid={!Case.ContactId}&template_id=00X40000001T2B0&p5=&save=1')