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
AbAb 

Email sent from pex code is not getting attached toOpportunity

Hello,

I have set the what id to a opportunity id, but i am not able to see the email attachment on the opportunity.

Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage(); 
        If(string.isNotBlank(OppId)){
            email.setWhatId(OppId);   
       }*/

What can be the reason ?