Get Option Set Name in Dynamics CRM. We can retrieve Option Set name of dynamics CRM entities using StringMap entity. StringMap entity: Stringmap entity basically used in MSCRM for storing the details of Option Set Fields exists in an organization. It contains all the data (Attribute Name, Option Set name, option value, option name, Object Type Code) of option set. How to get Option Set Name? We can simply join our entity with String Map entity and get name for option set fields. Example : We want to retrieve all option set name of Case Priority. Option Set Values without using Stringmap entity. Script: Query: select TicketNumber , prioritycode AS Priority from Incident Output: Option Set Values using Stringmap entity. Script: select TicketNumber , prioritycode AS PriorityCodeValue , SM . Value AS PriorityCodeName from Incident AS ...
IPLUGIN INTERFACE IN DYNAMICS CRM PLUGINS The first and mandatory Interface we require to start plugin is IPlugin Interface. What is IPlugin Interface? IPlugin is the base interface for plugins in Dynamics CRM. After Adding SDK reference the first step we need to do is to inherit IPlugin interface. We can inherit it by adding : IPlugin with our plugin class name Example - public class MyPlugin : IPlugin It is available at Namespace: Microsoft.Xrm.Sdk Assembly : Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll) Syntax for Iplugin public interface IPlugin IPlugin contains one method i.e Execute , Since if we are inheriting any interface in our code, we need to implement or we need to provide definition to all its method. So it is mandatory to define Execute method. Syntax for Execute method public void Execute(IServiceProvider serviceProvider) Parameters for Execute method The parameter we pass in Execute method is type of IServic...