You need to sign in to do that
Don't have an account?
dai tran 6
How can search product ?
This is my SOSL:
Occur error:
How can search product ?
List<List<sObject>> searchList=[Find :searchstring IN ALL FIELDS RETURNING Product2(ProductCode,Name,ImageName__c), PricebookEntry(UnitPrice)];
Occur error:
entity type PricebookEntry does not support search
How can search product ?
Example -
String searchstring = 'Diesel';
list<Product2> products = [Select Id, Name From Product2 where Name LIKE :('%' + searchstring + '%')];
System.debug('Products List'+products);
I have checked it and its Working