Skip to main content
added 25 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99

hi m getting the error while in one video the same code is working fine

Error: Compile Error: expecting an equals sign, found '1' at line 2 column 14

Error: Compile Error: expecting an equals sign, found '1' at line 2 column 14

trigger HelloWorld on Lead (before update) { for (Lead 1 = Trigger.new) { 1.FirstName = 'Hello'; 1.LAstName = 'World'; } }

trigger HelloWorld on Lead (before update) {
    for (Lead 1 = Trigger.new) {
    1.FirstName = 'Hello';
    1.LAstName  = 'World';
   }
}

hi m getting the error while in one video the same code is working fine

Error: Compile Error: expecting an equals sign, found '1' at line 2 column 14

trigger HelloWorld on Lead (before update) { for (Lead 1 = Trigger.new) { 1.FirstName = 'Hello'; 1.LAstName = 'World'; } }

hi m getting the error while in one video the same code is working fine

Error: Compile Error: expecting an equals sign, found '1' at line 2 column 14

trigger HelloWorld on Lead (before update) {
    for (Lead 1 = Trigger.new) {
    1.FirstName = 'Hello';
    1.LAstName  = 'World';
   }
}
Source Link

apex trigger error on leads object

hi m getting the error while in one video the same code is working fine

Error: Compile Error: expecting an equals sign, found '1' at line 2 column 14

trigger HelloWorld on Lead (before update) { for (Lead 1 = Trigger.new) { 1.FirstName = 'Hello'; 1.LAstName = 'World'; } }