Check out the latest features available in Dynamics 365 for Customer Engagement, including LinkedIn Connect, Voice of the Customer and Universal Resource Scheduling.
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants.Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements.
ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
I encountered the error Context is not initialized or already cleaned up on my plugin that is triggered Pre Update of Account entity. See code below.
Can you please let me know what is the fix on this? Thanks!
Context is not initialized or already cleaned up
May I know why you are not retrieving context from the service provider parameter of the execute method?
Here is sample code -
public void Execute(IServiceProvider serviceProvider)
// Obtain the execution context from the service provider.
IPluginExecutionContext context = (IPluginExecutionContext)
Can you share the details of the following function as it is calling some internal function which may be causing an issue: if(context.MessageName=="Update")
Please do not use the base plugin class concept(LocalPluginContext) . Define the context inside the class and pass as a parameter to other methods.
If found useful, please mark this answer as a verified answer.
Business Applications communities