Personalized Community is here!
Quickly customize your community to find the content you seek.
Check out the latest Sales updates!Learn about the key capabilities and features of Dynamics 365 Sales and experience some of the new features.
Download overview guide | Watch Sales video
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
Generally for Quote Product and Opportunity Product entities I have created custom fields, like Tax(%) and Discount(%). I have implemented a plugins which update these entities on create and set tax(%) to 19% and counts Tax and a plugin on update, when user change Discount(%) or Tax(%) field it counts Manual Discount or Tax. I have also use XRMToolbox with plugin Your entity attribute mapping, to map my custom fields and calculated tax and discount.
My problem is that when I create offer from opportunity, plugin overrides taxes and discount to base values. I would like to run plugin, only when the product is created manually by the user, not from opportunity. Do you have an idea how to handle this scenario?
You will have to analyze call stack of plugins - you will have to use ParentContext property of your plugin's context and if your plugin was called from CreateQuoteFromOpportunity plugin then just don't update taxes.
Business Applications communities