• Aman Pathak 14
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
As per the below code, this meant to update the first and last name only if I update a new lead but it is updating the first and last name of new lead as well Can someone please suggest. Thank you!

trigger HelloWorld on Lead (before update) {
for(Lead l : Trigger.new){
l.FirstName = 'Hello';
l.LastName = 'World';

}