You need to sign in to do that
Don't have an account?
rajesh k 10
URgent:how to solve Too many SOQL queries: 101 ?
Hi,
Help me...
set<Id> proids=new Set<Id>(); productList = [select id, name,Quantity__c from Product2 where Every_Bundle__c=TRUE]; System.debug('&&&&conlist &&&&&' + OptionalAdOnProductList); if (productList.size() > 0) { for (Product2 iterateproduct: productList) { allProductsEveryBundleCheckboxcheckedList.add(new WrapperOfProducts(iterateproduct)); proids.add(iterateproduct.id); } List<PricebookEntry> listOfProductRelatedPricebookEntry=new List<PricebookEntry>(); listOfProductRelatedPricebookEntry=[SELECT Product2Id,Pricebook2Id,UnitPrice FROM PriceBookEntry WHERE Product2Id IN :proids AND CurrencyIsoCode='USD']; for(PricebookEntry pricBkEntry :listOfProductRelatedPricebookEntry){ Decimal Listprice=pricBkEntry.UnitPrice; mapToProducts.put(pricBkEntry.Product2Id,Listprice); } }
Help me...
Thanks,
Kaustav
https://help.salesforce.com/apex/HTViewSolution?urlname=System-LimitException-Too-many-SOQL-queries-101&language=en_US (https://help.salesforce.com/apex/HTViewSolution?urlname=System-LimitException-Too-many-SOQL-queries-101&language=en_US)