• Bhupendra chauhan
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Email body is not correct.

Corrent Email body -  r�paration � Mississaug

correct Email body - de réparation – Andover


 
// the below sample code showing me error
 if(Trigger.isBefore && Trigger.isUpdate )
    {
      for(Lead led:Trigger.new)
        {
           string compnayname='company';
  Lead oldled= Trigger.oldMap.get(led.ID);

    if(oldled.compnayname!=led.compnayname)// ERROR : there is no such field company name :( (But there I am using the variable name instead of using field API directly, to acheive the requirement. Could plese tell me how to acheive this using the variable name)
 {

              leadids.add(ld.id);    
        }
    
    }