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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Plugin to Trigger when Quote Revise message triggered

(2) ShareShare
ReportReport
Posted on by 3,255
Hi All
I have a plugin that calculate tax and total on quotedetail and update quote, all works except when i revise quote extended price, tax revert to zero. I want to trigger a update when the quote is revised to set the total and tax calulation for each quotedetail line. What is message to use for this? Or is there a better way to do it? Bother Calculate Price message and Update message have the same issue. System pricing is disabled.
Categories:
I have the same question (0)
  • Verified answer
    Inogic Profile Picture
    709 on at
    Hi,

    When you revise a Quote in Dynamics 365 , the system internally creates a new Quote record and copies over the QuoteDetail records.
    This process does not trigger the Update or CalculatePrice messages on the create of new QuoteDetail records. That’s why your tax values reset to zero.
    Since system pricing is disabled, you have to handle all pricing, tax, and total calculations yourself in your plugin.
    To fix this you should registered your plugin on the Create message of QuoteDetail entity.
    • When a quote is revised, new QuoteDetail records are created as copies of the original QuoteDetail.
    • On create of Quote Details calculate tax, extended price and totals for each line and after calculating update the Parent Quote record.
    • It will update the tax, extended price and totals properly on both Quote and Quote Details.
    Hope this helps.
     
    Thanks!
    Inogic

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans