web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Create sales line in transaction by coding

(0) ShareShare
ReportReport
Posted on by

Hi all,

I have one sale line with item A, quantity = 10, and applied discount 50%

I need to split into two sales line with quantity as below:

- line 1 - item A: quantity = 1 + applied discount 50%

- line 2 - item A: quantity = 9 + no-applied discount

At first, I study how to clone one sales line to new another sales line as the same, then I will adjust quantity and discount later (by extending discount package)

Could anyone help me how to do that ? (ex: Does Retail Server, CRT have any request to create SalesLine request,..)

  • Suggested answer
    Shaimaa Abo Gabal Profile Picture
    Microsoft Employee on at

    Hi Kien,

    You can try ti use SaveCartLinesRequest  (This request represents a request for create, update, delete, or void operations on the cart line.)  listed in article docs.microsoft.com/.../crt-services

    If it doesn't help you , I would recommend you to open support request with us so we can contact Retail Product group for further help .

    Also may be that help if you disable product aggregation parameter from Functionality profile , Then at POS add the product with1 QTY apply line discount for the first line , then add the item again and it'll created new line with 1 QTY and you can update QTY for this line as you want .  (see screen shots)

    pastedimage1580910306653v1.png

    pastedimage1580910828414v2.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 99 Super User 2026 Season 2

#2
Paolo Cecchelli Profile Picture

Paolo Cecchelli 79 Super User 2026 Season 2

#3
Aayush Tiwari Profile Picture

Aayush Tiwari 71

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans