Answered by:
How to add configuration file to plugin in ms crm

Question
-
How to add configuration file to plugin and how to get the key values from the plugin can any one explain please.Saturday, October 25, 2014 4:42 AM
Answers
-
You can add use secured and unsecured configuration section using plugin registration tool.
This can be accessed in plugin class using constructor.
- Proposed as answer by Guido PreiteMVP Sunday, October 26, 2014 10:41 AM
- Marked as answer by DavidJennawayMVP, Moderator Monday, October 27, 2014 2:24 PM
Saturday, October 25, 2014 6:21 AM -
Thanks to all I understood how to add configuration values to plugin and how to access them
- Marked as answer by shiva_prasad Tuesday, October 28, 2014 6:19 AM
Monday, October 27, 2014 12:43 PM
All replies
-
You can add use secured and unsecured configuration section using plugin registration tool.
This can be accessed in plugin class using constructor.
- Proposed as answer by Guido PreiteMVP Sunday, October 26, 2014 10:41 AM
- Marked as answer by DavidJennawayMVP, Moderator Monday, October 27, 2014 2:24 PM
Saturday, October 25, 2014 6:21 AM -
You can also create a configuration entity that has a whole bunch of values.
Ibrahim Sukari, Technical Consultant | SharePoint | Dynamics CRM | LinkedIn Profile
Sunday, October 26, 2014 2:09 AM -
Hi,
As Prem Suggested above you can use Secured and Unsecured Configuration for that.
Below is an example
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Thanks and Regards, Mohammad Yusuf Ansari http://microxrm.blogspot.in
- Edited by Mohammad Yusuf Ansari Monday, October 27, 2014 7:26 AM
Monday, October 27, 2014 7:26 AM -
Hi Shiva,
It depends
1. "what type of configuration information" you need to use in plugin as well as
2. "do you need to configure these values from the CRM Application"
If you need to simply pass on the value to a plugin which doesn't need to configured from CRM Application then you can go through the Secure and UnSecure Parameter setting in the plugin registration tool as suggested by Mohammad Yusuf Ansari.
In case the end user needs that the configuration should be available in CRM Application which can be edited by the end user with Administrative privileges then I would suggest to have an configuration entity with Name and Value which can use in different plugins as an when required.
Moreover if you are using CRM 2013 then you would like to visit this link
Let me know in case you need any help.
Thanks & Regards,
Anubhav Bajpai
Anubhav Bajpai
Monday, October 27, 2014 10:10 AM -
Thanks to all I understood how to add configuration values to plugin and how to access them
- Marked as answer by shiva_prasad Tuesday, October 28, 2014 6:19 AM
Monday, October 27, 2014 12:43 PM