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
dede 

Sorting of the Opportunity Line Items

Hi,

I can sort Opportunity Line Items into any desired order through the UI. How can I do this through the API? Where are you storing my chosen sort order?

Thanks,

de

DevAngelDevAngel
The sort order that you can configure in the UI is not accessible in the API.  You can sort the Opty Line Items on any field you want once you have retrieved the records.
darozdaroz

I'm now running into this issue. (We need to convert an opportunity to an invoice and need to retain the order the items are listed in.)

Is there any chance of this being exposed in the 5.0 API? Any workaround suggestions?