Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CalulatePrice Message not fired at V 9.0.2

Posted on by

Hey,

we are at Dynamics Version 9.0.2.193 now and facing the issue that the CalculatePrice Message is not triggered anymore by the backend.

So custom price calculation with a plugin is not possible anymore.

Anyone else having the same problem or got it working?

Best Regards

Chris

*This post is locked for comments

  • SamJackSon Profile Picture
    SamJackSon on at
    RE: CalulatePrice Message not fired at V 9.0.2

    Hi,

    We are using OTB calculations and not handling CalculatePrice message.

    But we are updating Tax using plugin on Update.

    After upgrade to V9 (tried 9.0.5.5), OTB calculation do not calculate SalesOrderDetail.Amount & Extended Amount anymore. 

    We are creating SalesOrderDetail using PHP (SOAP api) and when made GET request again API returns tax-excluded amount. This creates payment issues (without tax). If CRM order form for that order is visited then it calculates & updates both the fields. This is weird.

    This was working fine in V8. There is simply no documentation anywhere to refer. We are updating SalesOrderDetail twice from PHP (SOAP api) as workaround but that is not stable. We also tried WebApi to create SalesOrderDetail unsuccessfully.

    Any insight will be highly appreciated.

  • Tuan Profile Picture
    Tuan 65 on at
    RE: CalulatePrice Message not fired at V 9.0.2

    One thing you might notice with registering separate Step for each Entity like the above, is that a change in product line item won't fire CalculatePrice message in the corresponding entity. For example, if you add/remove/change an Order Product, the Order won't get recalculated until after you interact with it again (e.g. open the Order to view). Interactive user won't see this problem if he modifies the Order Product, then go back to interact with the Order to continue work. But if line items are created/modified by SDK calls, for instance, the related Quote/Order/Opp/Invoice won't have the correct total amount in DB; you would need to 'touch' it to trigger CalculatePrice forcing recalculation.

  • catsem Profile Picture
    catsem on at
    RE: CalulatePrice Message not fired at V 9.0.2

    Dynamics Support also told me about this workaround in the meantime. Too bad they needed 5 weeks to tell us the workaround for this "known issue" (as they described it). This support is so ridiculous…

  • Tho.Mi Profile Picture
    Tho.Mi on at
    RE: CalulatePrice Message not fired at V 9.0.2

    Thanks Tuan! We also found out that the calling entity is required now for the "CalculatePrice" message to be fired. If the "entity" is left empty, it won't work in v9. However, we forwarded this issue to the support team, so lets hope this will be fixed in future updates 9.0.x.

  • Verified answer
    Tuan Profile Picture
    Tuan 65 on at
    RE: CalulatePrice Message not fired at V 9.0.2

    Had the same problem. I did the following 2 steps to make it work. You might want to try step 2 only.

    1. Recompile the plugin with the latest SDK dll's (I used assemblies in Microsoft.CrmSdk.CoreTools.9.0.0.7)

    2. My previous plugin registration was only one single Step for all the entities that listens to CalculatePrice message.  Unregister the current plugin and register it again. This time create a Step for each entity. See image below. For example, for Quote you will have to register one Step for quote and another Step for quotedetail.

    CalculatePriceRegistration.PNG

  • Tho.Mi Profile Picture
    Tho.Mi on at
    RE: CalulatePrice Message not fired at V 9.0.2

    I can confirm that. Same problem here. Customer upgraded to 9.0.2 yesterday and CalculatePrice message is not fired anymore. Any help will be appreciated.

    Best regards

    Thomas

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans