Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Tutorials for Plugin

Posted on by 1,846
Anyone can provide a good tutorial to start with C# for Dynamics 365 ? I need to create custom plugin to add resources to to project tasks in WBS . Any help would be appreciated. I cant find anything accurate on youtube for D365

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Tutorials for Plugin

    I found a useful PDF with all the required information:

    https://itaintboring.com/downloads/training/Plugin%20Development.pdf

  • Drew Clark Profile Picture
    Drew Clark 75 on at
    RE: Tutorials for Plugin

    If you are still having this issue, please email me at drew@mynextemployee.com and I would be happy to walk you through each step. I have a post mentioned below that can show you how to do every step. 5226.Capture.JPG

  • Suggested answer
    Drew Clark Profile Picture
    Drew Clark 75 on at
    RE: Tutorials for Plugin

    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.

    67815.Capture.JPGClick on the post to the left!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Tutorials for Plugin

    Hi M N,

    Here is a blog post I wrote on the basics for setting up a plugin that might help you:

    www.ec.co.za/.../dynamics-crm-plugins-the-basics

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Tutorials for Plugin

    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

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Tutorials for Plugin

    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.

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Tutorials for Plugin

    Hi,

    Its time to learn some debugging now :)

    dynamics365blocks.wordpress.com/.../how-to-debug-a-plugin-in-dynamics-365-online-using-plugin-profiler

    it will tell you exactly why and where it is failing - we will be able to help if you get any error.

  • Suggested answer
    Shahbaaz Ansari Profile Picture
    Shahbaaz Ansari 6,203 on at
    RE: Tutorials for Plugin

    did you registered your plugin on pre operation?? if not please try pre operation

  • Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Tutorials for Plugin

    Have you registered your plugin on pre create, if not register it on pre create? can you share your plugin steps screenshot

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Tutorials for Plugin

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans