While developing plugin for Microsoft Dynamics CRM, there are some scenarios where you required an input parameters or a configuration for the plugin execution which can be easily updated without having to re-compile or re-registering the plugin.
When you register a plugin step, there are fields where you can specify configuration parameters for the plugin execution.
In Microsoft Dynamics CRM there are two types of different configurations fields are available for plugin-
1. Unsecure configuration.
2. Secure configuration.
The main difference between these two settings is that, secure configuration is only viewable by CRM Administrators while the unsecure configuration is viewable by any CRM user.
Another major difference is- the unsecure configuration will automatically move between environments with your CRM solutions.
How to use the plugin step configuration:
While registering the new step in plugin you can provide the configuration data with the Secured or Unsecured fields as show in the below screenshot-
When you provide the configuration details in XML format in the constructor of your plugin class you will get the configuration value which you can use later in the execution method.
No comments:
Post a Comment