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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 140 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans