Skip to main content

Notifications

Announcements

No record found.

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
 
  • navneethegde Profile Picture
    navneethegde on at
    Add new LineItem via Extension
     
    I am trying to add it to PreEndTransactionTrigger. Should I be trying some other Trigger?
     
  • Suhail Ismail Profile Picture
    Suhail Ismail 103 on at
    Add new LineItem via Extension
    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.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,684 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans