When using Linq to query CRM, it is hard to retrieve the actual value stored in an option set.SQL Stored Procedure running slowly when raw SQL code runs fast. C Mock IPrincipal and IIdentity for Unit Tests. jQuery BlockUI Plugin. Microsoft.Xrm.Sdk.Metadata.PicklistAttributeMetadata retrievedPicklistAttributeMetadata (Microsoft.Xrm.Sdk.Metadata.PicklistAttributeMetadata). retrieveAttributeResponse.AttributeMetadata// Get the current options list for the retrieved attribute. CRM Blogs CustomerSource Ask a Question.I want set value of two option set control from C code via a cutome code activity. This will give us value of current status option set field.adxstudio C CRM CRM 4 CRM 4.