Hi buddy,
You need to use the metadata webservice or sdk.
Here is sample from sdk. \sdk\samplecode\cs\metadata\attributes.
RetrieveAttributeRequest
retrieveAttributeRequest =
new
RetrieveAttributeRequest
{
EntityLogicalName =
Contact
.EntityLogicalName,
LogicalName =
"new_picklist"
,
RetrieveAsIfPublished =
true
};
// Execute the request.
RetrieveAttributeResponse
retrieveAttributeResponse =
(
RetrieveAttributeResponse
)_serviceProxy.Execute(
retrieveAttributeRequest);
// Access the retrieved attribute.
PicklistAttributeMetadata
retrievedPicklistAttributeMetadata =
(
PicklistAttributeMetadata
)
retrieveAttributeResponse.AttributeMetadata;
// Get the current options list for the retrieved attribute.
OptionMetadata
[] optionList =
retrievedPicklistAttributeMetadata.OptionSet.Options.ToArray();
I hope this
helps.
Amreek Singh Senior CRM Consultant CDC Praxa Sydney, Australia
http://mscrmshop.blogspot.com
http://crm2011usersettings.codeplex.com