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)

call plugin on custom button click

(0) ShareShare
ReportReport
Posted on by 1,562

Hi all,

I want to call plugin on custom button click ,please suggest me the convenient way.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    You can create an action and where you can pass set of parameter if required, once activated your action will be available as a new message, so you can register your plugin on that message, and then it can be called using javascript.

    Refer:

    msdn.microsoft.com/.../dn481600.aspx

    nishantrana.me/.../using-action-to-trigger-plugin-in-crm-20132015

    Thanks

  • Suggested answer
    vinod shivoor Profile Picture
    1,225 on at

    Hi ,

    Please Refer the below link

    nishantrana.me/.../using-action-to-trigger-plugin-in-crm-20132015

    Thank you

  • Tin Profile Picture
    1,562 on at

    Is there any other way? I have not  use javascript.??????

  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    a button click is a client event, so at least a few javascript lines are required.

    the easiest way in my opinion is to create a dummy entity and attach the plugin to the create event of records of this dummy entity.

    the custom javascript will just create a record of this dummy entity using an odata call

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    You can add a custom field in to your entity. Based on the button click, you can simply update the value of that custom field. Now, you can register your plugin for the change of this custom field value.

    Mansoor

  • Verified answer
    Aileen Gusni Profile Picture
    44,524 on at

    Hi Tin,

    You can only trigger a custom action using button directly.

    Using javascript

    www.plusconsulting.com/.../Post.aspx

    If you want to trigger plugin, then you need to do:

    1. Create a dummy field to trigger

    2. Create a js to be called from ribbon that will change the field value

    3. Create a plugin code to check this dummy field is changed or not

    4. Clear the changes so that it will trigger again the plugin (of needed only)

    Or use this method:

    www.greenbeacon.com/.../trigger-plugin-from-ribbon-button-using-custom-actions-in-dynamics-crm-2013

    Hope this helps.

    Thanks.

  • Community Member Profile Picture
    on at

    Thank you for this Aileen!

  • Verified answer
    naZir Profile Picture
    850 on at

    Create a dummy field and hide it in form. update the field value once button is clicked.

    and you can call the plugin once the dummy fields value gets updated.

    thank you

  • Saddamk206 Profile Picture
    777 on at

    Hi, We can do same using below blog:-

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