how to connect a plugin with a entity

Spørgsmål how to connect a plugin with a entity

  • 26. april 2012 11:31
     
     

    Hi.

    I have created a plugin for sending bulk emails.

    this i want to connect with workflow which is written in Marketting list entity.

    Regards

    Benarji


    Benarji Sandra-MS Dynamics CRM Developer

Alle besvarelser

  • 26. april 2012 11:47
     
     
    Do you want to initiate  the workflow from Plugin ?
  • 26. april 2012 12:50
     
     

    If you want to start your plugin from workflow, then just define a new entity type, and register your plugin to run synchronously for that entity for the "Create" message.

    In your workflow, create a record for that entity. Your plugin will start at that point.

    Once your plugin is done processing emails, you can delete entity record that fired the plugin (you don't need it anyway - you only need it to start the plugin)

    PS. If it's Dynamics on-premises, you might try to use custom workflow activity instead:

    http://technet.microsoft.com/en-us/library/gg309745.aspx


    Alex Shlega, GotchaHunter.Net