Answered by:
plugin

Question
-
Hi,
I am new to ms Dynamics crm. Please give me a plugin code which display "Hello.... Well Come To Crm"
message after creating the account
Wednesday, April 6, 2011 10:50 AM
Answers
-
Hi Shivakumar,
These links will give you idea on plugins.
http://msdn.microsoft.com/en-us/library/bb955365.aspx
http://archive.msdn.microsoft.com/crmpluginsamples/Release/ProjectReleases.aspx?ReleaseId=443
NarSrav http://www.dynamicsexchange.com- Marked as answer by Donna EdwardsMVP Saturday, April 9, 2011 7:41 PM
Wednesday, April 6, 2011 12:27 PM -
If written synchronously you can do this, but it's quite as easy as you not only need a plugin, but also jscript to pop up a box that would say "Welcome to CRM". You have the issue that the server side processing model (including plugin execution) is disconnected from the client side processing model. This means you can't pop up a box in CRM saying welcome to CRM from a plugin, but you can from jscript. If the plugin is synchronous (not asynchronous) you could do it like this.
- plugin that fires on create could determine if the user (through custom attributes) is creating their first account.
- If so it would have to set some flag attribute (using an update call) that could then be picked up and examined using a retrievemultiple call in jscript in the onload of the form (which gets fired on again when you save a form). Then if the conditions are met you do a jscript alert message or fill a field with your a field or something. But if you are just filling a field it would be easier to do that from the plugin itself and then you don't need jscript. You will need jscript though to pop a box to the user.
Naresh is right in saying that you should probably start by reviewing the SDK though.
Jamie Miley
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Marked as answer by Donna EdwardsMVP Saturday, April 9, 2011 7:41 PM
Wednesday, April 6, 2011 1:21 PMModerator -
Hi Shivakumar,
we have lot of plug-in examples in SDK. Please download from here
Thanks,
Vijay
- Vijay- Proposed as answer by vijay i Wednesday, April 6, 2011 4:26 PM
- Marked as answer by Donna EdwardsMVP Saturday, April 9, 2011 7:41 PM
Wednesday, April 6, 2011 4:26 PM
All replies
-
Hi Shivakumar,
These links will give you idea on plugins.
http://msdn.microsoft.com/en-us/library/bb955365.aspx
http://archive.msdn.microsoft.com/crmpluginsamples/Release/ProjectReleases.aspx?ReleaseId=443
NarSrav http://www.dynamicsexchange.com- Marked as answer by Donna EdwardsMVP Saturday, April 9, 2011 7:41 PM
Wednesday, April 6, 2011 12:27 PM -
If written synchronously you can do this, but it's quite as easy as you not only need a plugin, but also jscript to pop up a box that would say "Welcome to CRM". You have the issue that the server side processing model (including plugin execution) is disconnected from the client side processing model. This means you can't pop up a box in CRM saying welcome to CRM from a plugin, but you can from jscript. If the plugin is synchronous (not asynchronous) you could do it like this.
- plugin that fires on create could determine if the user (through custom attributes) is creating their first account.
- If so it would have to set some flag attribute (using an update call) that could then be picked up and examined using a retrievemultiple call in jscript in the onload of the form (which gets fired on again when you save a form). Then if the conditions are met you do a jscript alert message or fill a field with your a field or something. But if you are just filling a field it would be easier to do that from the plugin itself and then you don't need jscript. You will need jscript though to pop a box to the user.
Naresh is right in saying that you should probably start by reviewing the SDK though.
Jamie Miley
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Marked as answer by Donna EdwardsMVP Saturday, April 9, 2011 7:41 PM
Wednesday, April 6, 2011 1:21 PMModerator -
Hi Shivakumar,
we have lot of plug-in examples in SDK. Please download from here
Thanks,
Vijay
- Vijay- Proposed as answer by vijay i Wednesday, April 6, 2011 4:26 PM
- Marked as answer by Donna EdwardsMVP Saturday, April 9, 2011 7:41 PM
Wednesday, April 6, 2011 4:26 PM