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?

  • Suggested answer
    Mohamed Sanuj Basheer Profile Picture
    540 on at
    RE: how to get a field name using guid in sql

    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

  • sahara Profile Picture
    645 on at
    RE: how to get a field name using guid in sql

    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 = ''

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 99

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans