MS CRM 2011 Optionset Data Stored in MS SQL SERVER

MS CRM 2011 Optionset Data Stored in MS SQL SERVER

MS CRM 2011 Optionset stored in the StringMapBase table. You’ll query via object type code of the entity, attribute name, option set value and language and that’ll give you the display value of the attribute.

To get option set values from sql server in an application outside MS CRM

select    * from StringMap s inner join EntityLogicalView e on s.ObjectTypeCode = e.ObjectTypeCode 
where e.Name = 'new_entityname' and s.AttributeName = 'new_optionsetname'

Cheers,
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s