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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

how to get a field name using guid in sql

(0) ShareShare
ReportReport
Posted on by 645

I have a list of fields guids and I need to get fields names from metadata by guids using SQL is there a way to do that ? if not what are my other options?

I have the same question (0)
  • sahara Profile Picture
    645 on at

    that did the trick for me :

    SELECT e.Name as 'entity' ,a.Name as field

    FROM [dbo].EntityView e

    left join [dbo].AttributeView a on e.EntityId = a.EntityId

    where a.attributeid = ''

  • Suggested answer
    Mohamed Sanuj Basheer Profile Picture
    540 on at

    Dear Partner,

    To get the field in the form, you can use Xrm Get Value function.

    var varMyValue = Xrm.Page.getAttribute(“CRMFieldSchemaName”).getValue() ;

    www.powerobjects.com/.../crm-2011-useful-javascript-tidbits

    msdn.microsoft.com/.../gg334409.aspx

    For example you want to get the Name, you don't need to use Id.

    var varMyValue = Xrm.Page.getAttribute(“new_name”).getValue() ;

    And if from Guid you can get any field using OData Query..

    See this link to get started

    missdynamicscrm.blogspot.com/.../tips-and-trick-odata-crm-2011-2013.html

    Which you can query any field using this ide similar to SQL.

    Regards,

    Mohamed Sanuj Basheer

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 74 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 31 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans