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
BA_AdminBA_Admin 

Is there any way to do this ?

Hi All,

    Iam trying to sort out the products based on list price not on Alphabetical order, ryte now if i go to any opportunity and add the product it shows based on Alphabetical order but i want it to sort out by list price, is there any way to do this?

 

TIA!

Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox

Users can sort products manually, if desired. To create a way to automatically sort products by list price, consider an OpportunityLineItem trigger or Visualforce page.

All Answers

sfdcfoxsfdcfox

Users can sort products manually, if desired. To create a way to automatically sort products by list price, consider an OpportunityLineItem trigger or Visualforce page.

This was selected as the best answer
BA_AdminBA_Admin

Is the trigger going to be on OpportunityLineItem or OpportunityProduct?

sfdcfoxsfdcfox

There's no such thing as an OpportunityProduct entity; the line items are called Opportunity Products in the UI. In the API, the entity is called OpportunityLineItem, and that is the entity you need to write a trigger for.