Customer Engagement & Dynamics CRM Forum

Custom price plugin filter detail line item on deletion

  • 1.  Custom price plugin filter detail line item on deletion

    Posted Jun 14, 2021 12:48 PM
    After realizing that taxes are line item based out of the box we opted to use custom a pricing recently since taxes come other systems. Therefore I made a custom pricing plugin based off the SDK example with discount amounts and taxes commented out.

    I had also commented out the try catch statements for the detail line items. However I found that deletion still fires the calculateprice message for deleted a line item. Making that detail line item throw an error saying the item does not exist. As a quick fix was to uncommented the try catch statements. Is there another way other than try catch statements to filter out deleted line items? We are Currently running on 2015 on perm if that changes the answer any.

    ------------------------------
    Mark McGeachy
    Web Application Developer
    ------------------------------


If you've found this thread useful, dive deeper into User Group community content by role