locked
how to trigger plugin to custom button created using isv.config method RRS feed

  • Question

  • Hi all,

    how to trigger(what message can i use) plugin for custom button created using isv.config method.when the button has clicked need to trigger plugin to create  a new lead record from contact records.

    plz reply me,

     

     

     

     

     


    Natarajan.V
    Friday, August 13, 2010 11:02 AM

Answers

All replies

  • Hi Natarajan.V,

    You could try with the 'execute' message.

     

    Friday, August 13, 2010 11:09 AM
  • you can't trigger plugin from ISV button
    Mahain : http://mahenderpal.wordpress.com
    Friday, August 13, 2010 11:11 AM
    Moderator
  • Where do you need the button located?

    Friday, August 13, 2010 12:03 PM
  • You can easily call the workflow using custom ISV button. Create a custom workflow activity and call in workflow step. And perform the operation.

    please see the below post: how to call workflow using javascript.

    http://jianwang.blogspot.com/2008/07/crm-40-use-javascript-excutecalllaunch.html

    Hope this helps.


    Thanks, Ranjitsingh R | http://mscrm-developer.blogspot.com/ | MS CRM Consultant
    • Proposed as answer by Ranjitsingh R Friday, August 13, 2010 3:54 PM
    • Marked as answer by Jim Glass Jr Friday, August 13, 2010 5:11 PM
    Friday, August 13, 2010 3:54 PM
  • well you can configure your plug in run on update of specific field and then when click on ISV button then update this field and system will automatically call the plug in..

    for e.g.

    your ISV button is called RunButton and field is called runplugin (you can create new field or use any existing field)...

    Now configre your plug in to run on update of this field ( runplugin field).

    put code on RunButton click to just update this field and save record, this will fire the plug in and work for you...

    Hope this helps..

     


    MayankP My Blog My twitter
    • Proposed as answer by VikranthP Saturday, August 14, 2010 8:36 AM
    Friday, August 13, 2010 4:39 PM
  • Hi,

    If you want to fire a plugin directly, its not possible.

    Some dudeligence need to be done.

    First you can create a record by using the webservice call.

    and at that time the plugin will get fired against the create message.

    If you want the plugin to be fired then update any of the fields in the current record and call the Save() of crmForm, then the update message will get fored, so ypur plugin.

    Sudhanshu

    Wednesday, September 15, 2010 9:03 AM