You need to sign in to do that
Don't have an account?
Dhanamjaya Paidipat
Error: Variable does not exist
Hi All,
I have developed below Apex trigger one month back but it was working as expected, but suddenly since two days it showing below error:
Kinldy help me why it's occured this issue suddenly.
Compile Error: Variable does not exist: MobilePhone at line 4 column 7
Apex Code:
trigger QualifiedMobileNumber on Lead (Before Insert) {
for (Lead a:Trigger.new){
for (Lead a1:[select id,MobilePhone, Status__c from Lead where Status__c='Qualified']){
if(a1.MobilePhone==a.MobilePhone && a1.Status__c=='Qualified'){
a.adderror('Your number is Qualified');
}
}
}
}
I have developed below Apex trigger one month back but it was working as expected, but suddenly since two days it showing below error:
Kinldy help me why it's occured this issue suddenly.
Compile Error: Variable does not exist: MobilePhone at line 4 column 7
Apex Code:
trigger QualifiedMobileNumber on Lead (Before Insert) {
for (Lead a:Trigger.new){
for (Lead a1:[select id,MobilePhone, Status__c from Lead where Status__c='Qualified']){
if(a1.MobilePhone==a.MobilePhone && a1.Status__c=='Qualified'){
a.adderror('Your number is Qualified');
}
}
}
}
Same issue again.