New answers tagged

1

Mike, Can you try the below code trigger LeadTrigger on Lead ( after update ) { Set < Id > setContactIds = new Set < Id >(); for ( Lead objLead : trigger.new ) { /* Getting Contact Ids from the Lead after conversion . ConvertedContactId in Lead contains the Contact Id to which the Lead is converted. ...


0

use message.setWhatId(Id): Messaging.SingleEmailMessage message = new Messaging.SingleEmailMessage(); message.ToAddresses = new String[] {'test@gmail.com'}; message.setPlainTextBody('body test'); message.setWhatId(case.Id) Messaging.SingleEmailMessage[] messages = new List < Messaging.SingleEmailMessage > {message}; Messaging.SendEmailResult[] ...


Top 50 recent answers are included