Send pdfContent using Trigger in salesforce
Requirement: I have VF page on render as pdf means it is PDF file. I want to send this pdf when in my object there is field "isSend" checkbox type is equal to true then send to users email ids , Send PDF using trigger using Web Service Class. you need to create two class and one trigger. And your VF Page Pdf class and page. Step 1: Create GETPDFContentController Class /* Before this you need to create a VFPage */ /** * Created By### refernce No:20180555 : Sumit Shukla * Description : This Apex class based on REST API which exposes POST method to send Email with * pdf content */ @RestResource(urlMapping='/sendPDFEmail/*') global class GETPDFContentController{ @HttpPost global static void sendEmail(String EmailIds, String Subject, String body, string recordID) { List<String> EmailIds = EmailIds.split(','); PageReference ref = ne...