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
upendra naiduupendra naidu 

can anyone let me know how can i get response inside salesforce.

Hi Everyone,

Can anyone let me know i have query i.e. i have send a email from end user through trigger for some approval and getting response from thier end getting response in inside salesforce(is there any possibility)

Here the trigger code.

trigger proposal on contact(before insert){
    if(trigger.isBefore&&trigger.isInsert){
    List<Messaging.SingleEmailMessage> mails = new List<Messaging.SingleEmailMessage>();
    for(contact objc:trigger.new){
        if(objc.Email!=null&&objc.FirstName!=null){
            
            Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
            List<String> sendTo = new List<String>();
            sendTo.add(objc.Email);
            mail.setToAddresses(sendTo);
            mail.setReplyTo('upendra0517@gmail.com');
            mail.setSenderDisplayName('Required recommendation letter');
            List<String> ccTo = new List<String>();
            ccTo.add('upendramtech18@gmail.com');
            mail.setCcAddresses(ccTo);
            mail.setSubject('please reply for recomendation letter');
            String body = 'Dear ' + objc.FirstName + ', ';
            body += 'we are sending email please acknowledge for recomendation letter.';
            
            mail.setHtmlBody(body);
            mails.add(mail);
            Messaging.sendEmail(mails);
            
        }
    }
         Messaging.sendEmail(mails);
    }
    
}

Thanks for advanced 
satya man 4satya man 4
I hope, All of you have participated in fancy dress competitions once in your life. A fancy dress competition is a competition among participants where they get dressed like their idols or like anyone from history, stories or a profession. To participate in these competitions most of you buy the required dresses from some store. But as you know the cost of these dresses are pretty high and these dresses are of no use once the competition ends. So, Buying a dress that will not be worn again is not a good idea.https://fancydressnoida.com