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)

How do you find properties associated with an entity

(0) ShareShare
ReportReport
Posted on by

I am hoping to get the associated properties/fields to an entity through the API. The EntityType Reference page has the individual entities listed, and when you select an entity (for example: account) there is a list of associated properties; these properties are what I hope to be able to access within the API. I am currently able to access entities through the /EntityDefinitions endpoint. Is there an endpoint that shows all of the associated properties to that endpoint? For instance, if you could sort by SchemaName or id and get associated properties? 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    As far as I know there is no way to return it, but you can download the Odata metadata via System -> Customizations -> Developer Resources:

    xyz.crm.dynamics.com/.../download.aspx

    Hope this helps.

  • Verified answer
    Macoy Profile Picture
    275 on at

    Hi dallashuggins,

    I'm not sure if this is possible thru odata rest api but I think you can probably use XrmWebApi. Please refer to this link docs.microsoft.com/.../getentitymetadata

    Hope this solve your query.

    Regards,

    Macoy

  • Macoy Profile Picture
    275 on at

    Xrm.Utility rather

  • Community Member Profile Picture
    on at

    Thanks Macoy! I'm struggling to figure how to use Xrm with Node JS. I can understand how to use it, but I'm not seeing how to define Xrm without using window.Xrm. Do you know if there's a way to use this API without DOM objects? The Xrm.Utility does exactly what I need, just not sure if I can use it with my server-side Node JS process. Edit: seems the more I look into it that this is a client-side process. 

  • Community Member Profile Picture
    on at

    Hey Aric - is the /download.aspx strictly to be done in a browser or is it an endpoint? couldn't find info on the endpoint if so.

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hello Dallas,

    You are correct, this is not possible , Xrm.Utility is only exists in the CRM window so without access DOM you can not get Xrm.

  • Community Member Profile Picture
    on at

    Hey Goutam - Thank you for the confirmation! Is there any way to get properties for custom entities or is this across the board?

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    It's not the endpoint. Browser only

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