Trigger a Plug-in From JScript in MS Dynamics CRM

Many times in MS CRM development we needs to trigger a plugin from JavaScript or from ribbon/command bar; its possible by supported way  and its easy too. Here are the steps for that

  1. Create a new custom entity to act as a trigger entity
  2. Register your plug-in(s) on the create or update messages for this newly created entity
  3. Create a JavaScript web resource that performs a soap update or create call of that newly created entity
    1. Create JavaScript web resource
    2. Ribbon customization
    3. Register JavaScript
  4. If you want to keep audit of this then go with create message, so each time on call of this plugin we can create new record that will save required data as audit.
  5. That’s it. 
Advertisements

One thought on “Trigger a Plug-in From JScript in MS Dynamics CRM

  1. Pingback: Trigger plugin using Action | CRM Practice

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s