*This post is locked for comments
*This post is locked for comments
I found a useful PDF with all the required information:
https://itaintboring.com/downloads/training/Plugin%20Development.pdf
Hi Mnarmeen! I recently wrote an entire guide on How to create a simple plugin and register it! It will take you through every step and show you how to fill in a field triggered by the creation of a contact! This logic can be applied to any entity and field. The next lessons will show how to create a task, and associate it with a contact. That logic will show how to create any record for any entity. Thank you and please leave a comment if it works for you or if you have any suggestions.
Hi M N,
Here is a blog post I wrote on the basics for setting up a plugin that might help you:
Hi,
In addition of Arc's answer ,
It might be happen that your plugin is executing and internally getting exception . So try to debug your plugin and enable trace log , write some message with basic plugin first using below reference .
http://davecorun.com/blog/2012/01/05/crm-2011retrieve-plugin/
https://www.magnetismsolutions.com/blog/ahmed-anwar's-blog/2015/06/04/tracing-and-logging-plugins-in-dynamics-crm-2015-online
From your code I see the following:
if (entity.Attributes.Contains("description"))
{
entity.Attributes.Add("description", "Here is the new description");
}
You already have an attribute named description, so adding a new attribute with the same name will be problematic.
You should change the logic as follows:
if (entity.Attributes.Contains("description"))
{
entity["description"] = "Here is the new description";
}
Hope this helps.
Hi,
Its time to learn some debugging now :)
it will tell you exactly why and where it is failing - we will be able to help if you get any error.
did you registered your plugin on pre operation?? if not please try pre operation
Have you registered your plugin on pre create, if not register it on pre create? can you share your plugin steps screenshot
Check out the following Plugin Training Guide from Alex Shlega (MVP). Great Resource for anyone wanted to learn how to develop plugins:
www.itaintboring.com/dynamics-dojo-dynamics-plugin-developer-course
Click on the download link at the bottom of the page.
Hope this helps.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156