I'm getting the following error:
Save error: Initial term of field expression must be a concrete SObject: LIST Force.com save problem
Here are the snippets of code in question:
List <PricebookEntry> newProdsList = [SELECT ID //Creating a new PricebookEntry list with all relevant information ,ProductCode ,UnitPrice ,Product2.Description FROM PricebookEntry WHERE ProductCode in: productCodes AND Pricebook2Id in: Pbook2Id.Id ];
The error is ocurring on the line Pricebook2Id in: Pbook2Id.Id.
Here is what Pbook2Id looks like:
List<Pricebook2> Pbook2Id = [SELECT Name ,ID FROM Pricebook2 WHERE Name='Support Renewal' AND IsActive=true];
My question is, what does this error mean? I've looked at other such errors here and I'm not sure I fully understand why it's being caused.