Nicola Grillo's Blog
Wednesday, October 26, 2011
SQL SERVER - How to get Microsoft Dynamics CRM picklist Label via SQL Query (String Map CRM Table)
1. Add in your query the following Left join:
Workaround
LEFT JOIN [Organizationname_MSCRM].dbo.StringMap sm On
sm.AttributeValue=picklistvalue AND
sm.ObjectTypeCode=3 (Example opportunity=3) AND
sm.AttributeName=''picklistname'' AND
sm.LangId=''1033''
2. Use sm.Value to retrieve the Picklist Label
Nicola Grillo
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment