Send Quote Pdf to Contact Person and Save the Quote PDF in attachement
Requirement: Need to create the save and send Quote Pdf custom button on Quote detail page and when user click on this button quote pdf as attachment send to quote contact person and pdf attached in attachment under quote Solution: 1) Need to create web service class 2 ) Create a custom button as a Detail page button and Behavior as Execute Java Script and content source is as onClick Java Script and call the web service class. WebServiceClass Name: global class clsSaveQuotePDFInAttachmentUnderQuote { webservice static String AttachPDFToQuote(string Id){ string strResponse = ''; try { PageReference pageRef = new PageReference('/apex/VFPageName?Id='+Id); Blob content; ...