15 Mar, 2022
Recently, we had a requirement to update a field on opportunity record whenever an opportunity was closed as won.
My first thought was that it was pretty straightforward and registered the plugin using this step:
But it did not fire the plugin when opportunity was closed as won, and I was thinking why?
After a bit of research I found that I instead needed to use the following:
But this does not return opportunity as “Target” as you might think, it actually returns “Status” and “OpportunityClose” .
OpportunityClose contains the information listed on the form displayed when you try to Win/Lose an Opportunity, CRM stores this as a separate entity.
As you can see we can get opportunintyid from the entity.
We can use it retrieve the opportunity record and perform desired operation on it.
Email Storage Made Easy: Dynamics 365 Storage Saving Tips Introduction Microsoft's latest feature allows you to migrate email descriptions from CRM…READ MORE
How to enable the enhanced email template editor in Dynamics 365? To activate the Enhanced Email Template editor for your…READ MORE
Troubleshooting Convert Rules Import Issue: Entity 'workflow' with ID Does Not Exist error in D365 Problem Statement We implemented D365 Customer…READ MORE