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
augiewazaugiewaz 

Product Lookup field on Visualforce page/Customer Portal

Hi,

 

I'm trying to implement a Visualforce page that is to be used on Customer Portals that is used by Contact to enter a new Order.

 

Where I am getting stuck is how to implement a Lookup field that will list the Products that the Contact is able to order. Not sure whether to reference the PriceBookEntry table or Product2 or is it best to run a query to only get entries linked to the right pricebookentry, etc.

 

For the Accounts/Contacts with portal access, there are different price books (though each Account is tied to only one price book).which they have access to but ideally also, the lookup field should bring in only the Products (and prices) that are linked to their specific price book.

 

Any help would be appreciated.

 

Thanks

Warren