How
to pass parameters to plug in
Secured vs. Unsecured
Below
are key differentiation between Secured and Unsecured data configuration
- Access
- Data passed through “Unsecure” section is PUBLIC (i.e., It can be read by any user in CRM).
- Only users with “System Administrator” role have access to the data passed through “Secure” configuration section
- Storage
- “Unsecure” config data will be stored along with the Plugin ‘Step’ registration information (i.e., In SdkMessageProcessingStep entity)
- “Secure” config data will be stored in a separate entity named “SdkMessageProcessingStepSecureConfig”
- Only “System Administrator” has Read access on this entity, hence only users with ‘Sys Admin’ role can access this data
- Both “Secured & Unsecured” configuration data stored as “Plain text” in DB
- Outlook Sync
- “Unsecured” configuration data is downloaded to the user’s computer when they go offline making it Unsecure
- “Secured” configuration data is NOT downloaded to User’s Computer when they go Offline
How to read
Configuration data in Plug-in
- When we register plug-in step, there is a field when we
can specify some configuration parameters for the plugin execution as below:
- Then in constructor of plugin class we will get the configuration value which we can use later in the execution method:
In quick watch we can check all the configuration
parameters as below:
- · Note :- If you want to read “Secure” configuration in the plug-in code, either change the user context in plugin registration as “CRM administrator ” or Impersonate to “CRM Administrator” role user in the code.
This really is both equally a very good information when i rather definitely preferred verifying. This may not be at all times i always get likely to see a challenge. Software Design
ReplyDelete