function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rcherrcher 

SOSL Error entity type PricebookEntry does not support search

Hi, 
I am trying to use sosl in my Apex Controller (SOSL Below). I am getting the error Entity type PricebookEntry does not support search. Let me know what the issue could be.

FIND '(12345)' IN ALL FIELDS RETURNING Product2(Actual_Product_Name__c), Product2(Name), Product2(Family), Product2(Description), PricebookEntry(UnitPrice where IsActive='true' AND Product2.DMMSSku__c LIKE '%y' and Pricebook2Id = '01s50000000A5kHAAS'), Product2(Dropship__c),Product2(Production_Lead_Time__c), Product2(Shipping_Lead_Time__c),Product2(SKU_Ship_Via__c)