Opportunity Product plugin showing incorrect figures RRS feed

  • Question

  • I have a plugin running Sychronusly, Post Operation on the opportunityproduct, the idea is to calculate Tax for the line. THe calculation works but it takes the baseamount as an input and calculates the tax. If someone updates the quantity etc it recalculates, the strange thing is that it keeps the previous baseamount. I.e if you create an Opp Product with a basemamount of £1000 and change the quantity to double the tax is calculated on £1000 still, not £2000, if you change the quantity a further time it calculates it always on the previous value.

    I've tried running it pre-operation as well but its the same thing, there isn't any other custom plugins.

    Assume CRM is calculating the new baseamount after my plugin is running but how to I get this value



    Tuesday, May 5, 2015 8:36 AM

All replies

  • Hello,

    Try to Use PostImage in your plugin.




    Tuesday, May 5, 2015 1:24 PM
  • Hi Ayaz,

    That seems to pull through the values i need but it wont pass the values back to the record to be updated now, this worked before.

    Any ideas?



    Wednesday, May 6, 2015 10:38 AM