Thursday, 26 April 2012 11:31 AM
I have created a plugin for sending bulk emails.
this i want to connect with workflow which is written in Marketting list entity.
Benarji Sandra-MS Dynamics CRM Developer
Thursday, 26 April 2012 11:47 AMDo you want to initiate the workflow from Plugin ?
Thursday, 26 April 2012 12:50 PM
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:
Alex Shlega, GotchaHunter.Net