web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

field translation in sql query

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

do you have any sample code ? or explanation or article that i can reference?

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    you can refer to below post, use the last query that provided.

    [View:https://community.dynamics.com/crm/b/crmjimwang/archive/2009/03/27/get-entity-47-attribute-39-s-display-name-from-crm-database:750:50]

    Language code

    docs.microsoft.com/.../enable-multiple-language-support

    Sample code

    SELECT  EntityView.Name AS EntityName, LocalizedLabelView_1.Label AS EntityDisplayName,

          AttributeView.Name AS AttributeName, LocalizedLabelView_2.Label AS AttributeDisplayName

    FROM    LocalizedLabelView AS LocalizedLabelView_2 INNER JOIN

          AttributeView ON LocalizedLabelView_2.ObjectId = AttributeView.AttributeId RIGHT OUTER JOIN

          EntityView INNER JOIN

          LocalizedLabelView AS LocalizedLabelView_1 ON EntityView.EntityId = LocalizedLabelView_1.ObjectId ON

          AttributeView.EntityId = EntityView.EntityId

    WHERE   LocalizedLabelView_1.ObjectColumnName = 'LocalizedName'

    AND LocalizedLabelView_2.ObjectColumnName = 'DisplayName'

    AND LocalizedLabelView_1.LanguageId = '1033'  <-- change the language code (LCID) accordingly.

    AND LocalizedLabelView_2.LanguageId = '1033'  <-- change the language code (LCID) accordingly.

    AND EntityView.Name IN ('Account','Contact')   <-- replace your entity name

    ORDER BY EntityName, AttributeName

    Please note that this is unsupported

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans