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

Announcements

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Add new LineItem via Extension

(0) ShareShare
ReportReport
Posted on by
Hi!
 
I want to add new lineItem to the cart  via  Trigger extension.
The Idea is, I want to provide extra Donation on Payment device, which comes back as overpayment to the check so before closing this check I want to adjust the extra donation as new Line item on the check.
 
Is it possible with Dynamics 365 Commerce POS API?
 
I have TS code as below extending PreEndTransactionTrigger
export default class AddDonationPreEndTransactionTrigger extends Triggers.PreEndTransactionTrigger {
 
Thanks!
Navneet
 
I have the same question (0)
  • Suhail Ismail Profile Picture
    103 on at
    I think you should be doing this on the payment trigger related to payment device integration(not sure about what the exact names are) rather than pre end transaction trigger.
  • navneethegde Profile Picture
    on at
     
    I am trying to add it to PreEndTransactionTrigger. Should I be trying some other Trigger?
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 179 Super User 2026 Season 1

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 83 Super User 2026 Season 1

#3
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 79

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans