locked
Plugin Not get fired in Send Email Ribbon Button CRM 2011 RRS feed

  • Question

  • Hi,

    I have created a plugin which i need to fire during send email ribbon button  clicked . But the plugin is not getting fired.

    Even if i debug the plugin , i am not able to debug.  after some goggle i go through the bellow link where i am facing same error.

    http://stackoverflow.com/questions/15405394/why-send-email-plugin-is-not-working

    Profiler> Plug-in AppDomain Created
    Profiler> Parsed Profiler File Successfully.
    Profiler> Constructor Execution Started: XXXXXXXX
    Profiler> Constructor Execution Completed Successfully (Duration = 8ms).
    Profiler> Profiler Execution Started: XXXXXXXXXXX
    Plug-in> Entered CRMEmailToParticipantsPackage.EmailPlugins.PostParticipantCreate.Execute(), 
    Plug-in> Exiting CRMEmailToParticipantsPackage.EmailPlugins.PostParticipantCreate.Execute(),
    Profiler> Profiler Execution Completed Successfully (Duration = 45ms).
    Profiler> Profiler AppDomain Unloaded

    i have registered my plugin in update Step 
     message  : Send
    Primary Entity = email

    Post operation
    and my Image is in post Image = Target


    Grateful for any help!!


    • Edited by kMAT1 Tuesday, September 3, 2013 7:53 AM
    Tuesday, September 3, 2013 7:52 AM

All replies

  • Hi,

    Can you please give us a bit more info?

    1. Does the email actually get sent or do you get an error when attempting to send the email?
    2. How have you confirmed that your plugin is not running?

    Michael Palmer
    xRMPalmer     @MJFPalmer     Rockstar365

    Tuesday, September 3, 2013 8:22 AM
  • Hi , 

    i am trying to update  record which is in Regarding lookup in Email Entity.

    when i click  send email ribbon button. 

    I cant able to debug my plugin also. Getting above error i have mentioned. 

    is there any other method to find.

    Tuesday, September 3, 2013 8:53 AM
  • Hi,

    Can you please post your plugin code?

    How are you attempting to debug the plugin? Are you attaching to the w3wp service? When you set your breakpoint in the plugin, does visual studio mark it as a breakpoint that will be hit (solid red icon)?


    Michael Palmer
    xRMPalmer     @MJFPalmer     Rockstar365

    Tuesday, September 3, 2013 9:24 AM
  • Hi,

    Please stop profiling and debugging and try to throw an error from the plugin in start of the plugin. If it throws an error then plugin is fired.

    if you are using Plugin profiler please make sure you are attaching PluginRegistration.exe process for debugging purpose.

    http://guruprasadcrm.blogspot.in/2011/11/how-to-debug-crm-2011-online-plugin.html

    Thanks!

    Tuesday, September 3, 2013 10:06 AM
  • My plugin logic and all works perfect.

    But the plugin doesn't fire in Email (send ) . 

    Is there any other thing i left

    Grateful for any help!!

    Tuesday, September 3, 2013 1:18 PM