What field is used to reference the sort order on a quote line item? - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Laura McKevittLaura McKevitt 

What field is used to reference the sort order on a quote line item?

I am trying to order by the sort order of quote line items in a SOQL. Does anyone know if "sort order" exists on quote line items? Thanks!
Matt BrownMatt Brown
Yep sort order for Quote Line Items was released this Spring 11 release.
Laura McKevittLaura McKevitt
To claify further, I'm looking for the field reference (system stored sort order) so that I can add it to a query of mine. I know that it's possible in the UI to sort on Quote Line Items and Opportunity Products as of the Spring '11 Release.

On the Opportunity, the field is called "sort order", and there is no such thing in the Order Line Items table. Does SFDC not present this?
Matt BrownMatt Brown
This is really a developer question which should be posted on the Developer Discussion Boards but a quick serach for QuoteLineItem on the Developer Force site produced this:

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_quotelineitem.htm
Sabir ShaikhSabir Shaikh
@MattBrown

Could you please let me know if you have any idea why Opportunity Stage Sort order is used for in workflow criteria ?

Thanks for your help