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
Mitchell McLaughlin 10Mitchell McLaughlin 10 

OpportunityLineItem.SortOrder

OpportunityLineItem.SortOrder - Unwritable via Apex

Does anyone have a workaround besides this - (which is only for) classic? https://developer.salesforce.com/forums/?id=906F00000008zkRIAQ

We are in desperate need of a lightning fix.

Thanks!
NagendraNagendra (Salesforce Developers) 
Hi Mitchell,

Sorry for this issue you are facing.

Unfortunately, this is not possible as of now.

There is an idea which is active on the success community for which you can upvote so that it gets available in the mere future.
Hope this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra