You need to sign in to do that
Don't have an account?
mba75
trigger Compile Error: Initial term of field expression must be a concrete SObject: LIST:SOBJECT:...
I am a new Apex user and i write this code :
trigger opp_line_item_update on Opportunity (after update) {
for (opportunitylineitem[ ] olis : [Select z_oli_update__c From opportunitylineitem oli where opportunityid in : trigger.new ]){
if (olis.z_oli_update__c!='world')
olis.z_oli_update__c='world';
}
}
Error: Compile Error: Initial term of field expression must be a concrete SObject: LIST:SOBJECT:OpportunityLineItem at line 4 column 1
What is the ptroblem with my SObject ?
trigger opp_line_item_update on Opportunity (after update) {
for (opportunitylineitem[ ] olis : [Select z_oli_update__c From opportunitylineitem oli where opportunityid in : trigger.new ]){
if (olis.z_oli_update__c!='world')
olis.z_oli_update__c='world';
}
}
Error: Compile Error: Initial term of field expression must be a concrete SObject: LIST:SOBJECT:OpportunityLineItem at line 4 column 1
What is the ptroblem with my SObject ?
Mike