You need to sign in to do that
Don't have an account?
thrinadh rao
Write a trigger on compitator accounts
I am getting error code for the this code. Can anyone help me .
Error: Compile Error: Variable does not exist: Compitator_picklist__c at line 4 column 80
trigger GetCompitator on Account (after insert) {
Account Acc=[SELECT id,Name,Compitator_picklist__c From Account];
List<Account> AccList = new List<Account>();
Compitator__c Comp =[SELECT id,Name From Compitator__c Where Name=:AccList.Compitator_picklist__c];
for (Account Acc : trigger.new){
Acc.Compitator__c = Comp.Name ;
}
}
Error: Compile Error: Variable does not exist: Compitator_picklist__c at line 4 column 80
trigger GetCompitator on Account (after insert) {
Account Acc=[SELECT id,Name,Compitator_picklist__c From Account];
List<Account> AccList = new List<Account>();
Compitator__c Comp =[SELECT id,Name From Compitator__c Where Name=:AccList.Compitator_picklist__c];
for (Account Acc : trigger.new){
Acc.Compitator__c = Comp.Name ;
}
}
Raj Vakati
Use this code and bulky