Currently I'm having issue saving my code:
public static void myMethodMyMethod(Map<Id,OpportunityLineItem> OLIs, String action){
for(OpportunityLineItem oli:OLIs.values()){
system.debug('oli.ProductCode ' + oli.ProductCode);
}
}
I keep getting this error: Invalid field ProductCode for SObject OpportunityLineItem
I was able to print out other fields information from sObject oli (i.e. OpportunityId, UnitPrice, etc). For some reason ProductCode does not work...
Any advice?
Thank you, Eric