Category Archives: CRM SDK

Retrieve the text label for an OptionSet value

Here is the implementation I use for a method to get back the text/caption of an OptionSet item. private ¬†string GetOptionsSetTextOnValue(IOrganizationService service, string entityName, string attributeName, intselectedValue) { RetrieveAttributeRequest retrieveAttributeRequest = new ¬†RetrieveAttributeRequest { EntityLogicalName = entityName, LogicalName = attributeName, … Continue reading

Posted in CRM SDK, Helpers, Plugins, Uncategorized | Tagged , | Leave a comment