Answered by:
Event to fire a plugin

Question
-
Hi,
I have a requirement to send reminder mails to a list of people. My all requirements are achived through CRM OOB workflow but not able to set the TO field in send email according to what i want. If i use a plugin to send email instead of the send mail step that is in workflow. What is the event that it should be fired? What is the possible solution?
Thanks in advance,
Monday, October 17, 2011 2:57 PM
Answers
-
Which is your trigger for the workflow? (or is it on-demand?)
Plugins cannot be defined on-demand. However, I'm wondering why you cannot set the TO field in the workflow
Gonzalo | gonzaloruizcrm.blogspot.com
- Proposed as answer by Jamie MileyModerator Monday, March 12, 2012 3:04 PM
- Marked as answer by Jamie MileyModerator Monday, March 12, 2012 3:04 PM
Monday, October 17, 2011 3:05 PMModerator -
Hello Prasad,
I have developed following custom workflow action - it fills To field with members of some special team. I strongly believe that provided solution feets your needs. Please check following article - http://a33ik.blogspot.com/2009/10/custom-workflow-action-team-members-and.html
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by Jamie MileyModerator Monday, March 12, 2012 3:04 PM
- Marked as answer by Jamie MileyModerator Monday, March 12, 2012 3:04 PM
Monday, October 17, 2011 4:44 PMModerator -
You can fire a plugin on demand using a quick work around. You create a custom entity to be used as a trigger. Then you attach your plugin to the create or update of that new entity type. You can then make an update or create call from a jscript function and jscript functions can be wired up to form events or even ribbon buttons.
My blog has numerous examples of calling CRM web services in jscript. Here is a list of examples and the list does include create and update calls in jscript:
http://mileyja.blogspot.com/p/microsoft-dynamics-crm-2011-sdk-index.html
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Tuesday, October 18, 2011 3:33 PM
- Marked as answer by Jamie MileyModerator Monday, March 12, 2012 3:04 PM
Tuesday, October 18, 2011 3:33 PMModerator
All replies
-
Which is your trigger for the workflow? (or is it on-demand?)
Plugins cannot be defined on-demand. However, I'm wondering why you cannot set the TO field in the workflow
Gonzalo | gonzaloruizcrm.blogspot.com
- Proposed as answer by Jamie MileyModerator Monday, March 12, 2012 3:04 PM
- Marked as answer by Jamie MileyModerator Monday, March 12, 2012 3:04 PM
Monday, October 17, 2011 3:05 PMModerator -
Hello Prasad,
I have developed following custom workflow action - it fills To field with members of some special team. I strongly believe that provided solution feets your needs. Please check following article - http://a33ik.blogspot.com/2009/10/custom-workflow-action-team-members-and.html
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by Jamie MileyModerator Monday, March 12, 2012 3:04 PM
- Marked as answer by Jamie MileyModerator Monday, March 12, 2012 3:04 PM
Monday, October 17, 2011 4:44 PMModerator -
Hi Andriy,
Thanks for your reply,
This is similar to what i want but this code is for CRM 4.0 and i am using CRM 2011. Being new to CRM I tried modifying it but facing some difficulty. It would be great if you help me provide the revised code for the above link that will work for CRM 2011.
Thanks in advance,
Tuesday, October 18, 2011 3:02 PM -
You can fire a plugin on demand using a quick work around. You create a custom entity to be used as a trigger. Then you attach your plugin to the create or update of that new entity type. You can then make an update or create call from a jscript function and jscript functions can be wired up to form events or even ribbon buttons.
My blog has numerous examples of calling CRM web services in jscript. Here is a list of examples and the list does include create and update calls in jscript:
http://mileyja.blogspot.com/p/microsoft-dynamics-crm-2011-sdk-index.html
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Tuesday, October 18, 2011 3:33 PM
- Marked as answer by Jamie MileyModerator Monday, March 12, 2012 3:04 PM
Tuesday, October 18, 2011 3:33 PMModerator