Category Archives: Free Book

Show MS CRM Optionset values in Dropdownlist in

Sometime customers have requirement to create MS CRM records through custom pages, and if we have optionset in our entity we might want to display optionset valeus in dropdownlist in our Web page. We can use following code to populate optionset values in dropdownlist. public Dictionary<int, string> RetrieveOptionsetMetadata(IOrganizationService _iOgranizationService) { //Dictionary to store value and text Dictionary<int,string> _DropdownDatasource=newDictionary<int,string>(); //Create request to fetch… Read more »