web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Using CRM Developer Toolkit for developing Plugin

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    Joe Gill Profile Picture
    on at

    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

  • Crm Practitioner  Profile Picture
    170 on at

    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
    Tim Dutcher Profile Picture
    2,100 on at

    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.

  • Crm Practitioner  Profile Picture
    170 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans