Answered by:
Plugins

Question
-
can we call a jscript function associated to a button onchange event using plugin in online crm2011? If so ... How can we do it?
sand
Wednesday, February 15, 2012 5:42 AM
Answers
-
To trigger plugin which is configured to handle some event you have to invoke this event in system, i.e. to trigger plugin which is configured to handle Create message of opportunity entity the only way to create opportunity. The way out is to redevelop your plugin to be triggered (for example) on Update of account (it could be even some fake field which is not used in your solution).
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by Andrii ButenkoMVP, Moderator Wednesday, February 15, 2012 6:06 AM
- Edited by Andrii ButenkoMVP, Moderator Wednesday, February 15, 2012 6:12 AM
- Marked as answer by DavidJennawayMVP, Moderator Sunday, March 18, 2012 7:33 PM
Wednesday, February 15, 2012 6:06 AMModerator
All replies
-
Hello,
I'm not sure what you wanted to achieve but checkfollowing article - http://mileyja.blogspot.com/2011/11/how-to-trigger-plug-in-from-jscript-in.html
In the case I understood you wrong could you please describe what do you want to achieve more detailed?
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by Andrii ButenkoMVP, Moderator Wednesday, February 15, 2012 6:06 AM
Wednesday, February 15, 2012 5:46 AMModerator -
Hi San,
No you cant,
instead of that what that js function does?
can you please explain what do you need to achieve.
Regards
Sandeep
By Sanz. -- If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
Wednesday, February 15, 2012 5:51 AM -
Wednesday, February 15, 2012 6:01 AM
-
To trigger plugin which is configured to handle some event you have to invoke this event in system, i.e. to trigger plugin which is configured to handle Create message of opportunity entity the only way to create opportunity. The way out is to redevelop your plugin to be triggered (for example) on Update of account (it could be even some fake field which is not used in your solution).
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by Andrii ButenkoMVP, Moderator Wednesday, February 15, 2012 6:06 AM
- Edited by Andrii ButenkoMVP, Moderator Wednesday, February 15, 2012 6:12 AM
- Marked as answer by DavidJennawayMVP, Moderator Sunday, March 18, 2012 7:33 PM
Wednesday, February 15, 2012 6:06 AMModerator -
no it is not possible,
but you can do one more thing,
what you have done in js (so same thing has to be replicate in plugin)?.
By Sanz. -- If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
Wednesday, February 15, 2012 6:08 AM -
ok
Thanks to eveyone
sand
Wednesday, February 15, 2012 6:15 AM -
then is it possible to call viceversa
i.e
calling plugin from js?
sand
Wednesday, February 15, 2012 6:16 AM -
calling plugin from js?
Directly - no, indirectly - yes. I have already written all explanations and provided article with sample.
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by Andrii ButenkoMVP, Moderator Wednesday, February 15, 2012 6:18 AM
Wednesday, February 15, 2012 6:17 AMModerator -
once again thanks..
sand
Wednesday, February 15, 2012 6:23 AM