Opportunity Revenue Calculation Plugin c# RRS feed

  • Question

  • Hi,

    I have a requirement to calculate Opportuniy Revenue based on Product .

    Hence itz an OOB System calculation will update all the field. Hence i need to modify default OOB calculated value to my custom plugin validation. 

    This Plugin has to Fire on 

    * Product Item Update 

    * Product Item Delete 

    * Opportunity Product Add

    * Opportunity Product Quantity  Update   

    * Opportunity Product Delete.

    I need to do this calculation on the above scenario.

    Can you plz Experts guide me how to achieve on this. ?

    Can you plz share some Sample code on Opportunity --> Product Calculation .

    Hence it will be use full for me to add my custom logic. 

    Thanks in Advance... 
    Tuesday, November 25, 2014 6:26 PM

All replies

  • Total revenue on an opportunity is calculated by CRM and it is triggered on all the events mentioned above. You just have to click save or recalculate

    Regards Faisal

    Wednesday, November 26, 2014 10:00 AM
  • Yes ,

    Can u provide some sample code on my above scenario 

    Thursday, November 27, 2014 6:19 AM
  • Hi,

    If I understand your question correctly, there is no customization have to do to achieve this functionality. CRM internally doing this.

    Or if you need any change from the system functionality then you need to do customization based on your requirement



    Thursday, November 27, 2014 11:20 AM
  • Hi Seban Mathews,

    any Idea how to restrict CRM OOB Record Create without throwing Error exception. ?

    Eg : On Create of Qute from Opportunity  all the Quote Product Gets Created using OOB plugin. 

    I need to restrict this behaviour without throwing Error Message .? 

    plz let me know how to restrict OOB Plugin Creation without Throw Exception ?. 

    This would really help full for me and others .

    Thanks in Advance

    Monday, December 1, 2014 7:40 PM
  • Hi,

    I dont think we can restrict this system behaviour of creating quote product without throwing invalid plugin exception.

    But you can try to create a Post Create Asynchronous plugin on quote product to delete the created quote product record.



    Tuesday, December 2, 2014 9:18 AM