Notifications
Announcements
No record found.
Hi all,
I want to call plugin on custom button click ,please suggest me the convenient way.
*This post is locked for comments
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
Hi ,
Please Refer the below link
Thank you
Is there any other way? I have not use javascript.??????
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
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
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.
Thank you for this Aileen!
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
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2