Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Using CRM Developer Toolkit for developing Plugin

Posted on by 170

Hi everyone,

I found that with the Developer Toolkit, the generated template codes are tied in to entity, stage and message, for example, if I want to create a plugin to fire on Create of an an Account on Post Operation stage, it would generate a class ExecutePostAccountCreate and then I just fill in the details.

While this is fairly convenience way to develop plugin, however, I have some questions:

 - What if on Create of an an Account on Post Operation stage, I want to fire multiple plugins ? 

- What if I want to disable/enable individual step for some reasons (i.e debugging CRM behavior without access to source code)

- What if I want to have generic plugin that can be used for multiple entities and can turn on/off without effecting  other plugins. Let's say I have SharePoint plugin that create folder hierarchy in SharePoint and create document location record in CRM. I want to it run in any entity by creating step for that entity. Using Developer Toolkit require me to modify code, recompile and upload again.

Thank you for your answers

*This post is locked for comments

  • RE: Using CRM Developer Toolkit for developing Plugin

    Hi Tim

    I like your idea. At the Production stage, operator doesn't have the luxury to change the code and redeploy the plugin. They need to have UI to disable, enable particular process that they don't want to run. The DYI method exposes all the steps that I could disable, enable but it quite cumbersome to manage.

    Thanks

  • Suggested answer
    Tim Dutcher Profile Picture
    Tim Dutcher 2,100 on at
    RE: Using CRM Developer Toolkit for developing Plugin

    Maybe use the Unsecure Configuration property to provide an on/off setting for each plug-in logic path?

    As an aside, I don't use the Developer Toolkit b/c I work with a large number of clients and don't want to force their developers into using a tool that Microsoft isn't committed to updating or supporting. I find it better to create plug-ins with a very descriptive class name and where it performs one primary action. For me, this allows for easier development and troubleshooting and makes it easy to enable/disable each plug-in step.

  • RE: Using CRM Developer Toolkit for developing Plugin

    Hi Joe,

    Let's say traditionally (i.e the way without any boiler plate code) I have two independent plugins fire on Create of an an Account on Post Operation stage. The way to do it is created a step of each plugin. I could enable or disable each step through UI.

    Now, with Developer Toolkit, the above 2 plugin steps need to be combined into class ExecutePostAccountCreate and it create a single step, how can I invoke one plugin without invoking another together. Of course I can go into the code and comment it out, but what's if I don't have access to the code ?

    Thanks

  • Suggested answer
    Joe Gill Profile Picture
    Joe Gill on at
    RE: Using CRM Developer Toolkit for developing Plugin

    Hi,

    Yes you can register multiple plugin to fire on an event

    You could unregister individual events to help debug problems. Also consider using adding trace message to your code and you can turn tracing on to  track down issues

    Yes you can create a generic plugin to interact with Sharepoint that would work with different entities

    hth

    Joe

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans