Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to get list of fields from particular entity form

(0) ShareShare
ReportReport
Posted on by 250

Hi All,

I need to know to extract data using sql query to get list of fields that embedded on particular entity form?

I know it can be performed by xrmtoolbox, but my requirement is different and need to extract this information from sql query.

example : in "account" entity we have "information" form and within information form we have "first name", "last name" as fields.

so, the result of query it should be :

entity form logical field display field
account information firstname First Name
account information lastname Last Name

thanks in advance 

*This post is locked for comments

  • gloamingon Profile Picture
    gloamingon 250 on at
    RE: How to get list of fields from particular entity form

    Hi, yes it is fine if it will use C# as well. Do you have sample code for this? or maybe inform to me which entity or the source that I may get the data for that XML.

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,052 on at
    RE: How to get list of fields from particular entity form

    Hi

    Is your requirement to only use SQL or can you use C# as well?

    Forms are stored as XML so it is not very straightforward to get the list of fields from them using SQL.

    If you are happy to do this in C#, you can query and get the form XML, and load it as XMLDocument or use XMLReader to process and get the list of fields

    One other option, which I have not tested,  would be to get the list of fields that have dependency on the form

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans