Skip to main content



No record found.

Dynamics 365 Community / Forums / Commerce forum / 'MPOS Cart Lines S...
Commerce forum

'MPOS Cart Lines Sorting Order

Posted on by 5

I am trying to sort POS sales lines. I have created a request handler ('CalculateDiscountServiceRequest'). I was able to sort the saleslines but when the request is returned to POS I am unable to view any visible changes in the pos. I tried changing the lineNumber in salesline and even tried sorting the SalesLines[] with my own custom logic but I cant see any visible change on the front-end. I tried debugging MPOS and I found that my cart lines were sorted.

I found a very strange behavior that whenever I logged out and login again my cart was then sorted.

Version 10.0.28

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,835 Super User

Martin Dráb Profile Picture

Martin Dráb 225,526 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans