Where it is used?
When creating plugin in VisualStudio via DeveloperToolkit there is an option to provide some configuration. Configuration is a string field which can be represented witch simple string, XML, CSV or other schema.
Auto generated constructor is also created where both configurations are represented as plain string, which you can parse inside your code.
public LogPostCreate(string unsecure, string secure) : base(typeof(LogPostCreate)) { RegisteredEvents.Add(new Tuple<int, string, string, Action<LocalPluginContext>>( (int)PluginOperationType.PostOperation, PluginMessageType.Create, Log.EntityLogicalName, new Action<LocalPluginContext>(ExecuteLogPostCreate))); _secureConfig = secure; _unsecureConfig = unsecure; }
When it is used, what is the difference?
Unsecure config:
- public info, can be read by everyone
- used for common parameters
- after exporting and importing to another organization data are available
Secure config:
- can be read only by CRM Administrator
- used for e.g. login and passwords
- after exporting and importing to another organization data are NOT available