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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Query metadata using t...
Power Apps
Unanswered

Query metadata using the web api does not return Attributes information explicitly selecting it

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am running the following query 

https://orgID.api.crm.dynamics.com/api/data/v9.2/EntityDefinitions

and I do get back all fields.

However, if I run

https://orgID.api.crm.dynamics.com/api/data/v9.2/EntityDefinitions?$select=DisplayName,Attributes

I get back only DisplayName and not the attributes....

 

Are there certain fields I need to ask for in order to get back the Attributes. Is there a depedency?

 

I have the same question (0)
  • ChrisPiasecki Profile Picture
    6,422 Most Valuable Professional on at

    Hi @Kobia ,

     

    To get attributes for a particular entity, you need to drill down to a specific entity, then expand the Attributes since it is a collection.

    For example:

    /EntityDefinitions(LogicalName='account')/Attributes

    https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/query-metadata-web-api#querying-entitymetadata-attributes 

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • Kobia Profile Picture
    Microsoft Employee on at

    Hi Chris,

    I am trying to get attributes of all entities, and be generic, that is I don't know the name of the entities beforehand. 

     

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @Kobia , 

     

    I'm afraid you need to make several requests:

    1. First to get all entities

    api/data/v9.2/EntityDefinitions?$select=LogicalName,DisplayName

    2. then you can make for each entity a requests for attributes

    api/data/v9.2/EntityDefinitions(LogicalName='account')/Attributes

     

    And will get worse, if you need to get some special metadata like Options for an optionset or boolean: then you need to make a separate request for each type of attribute (Picklist, Multipiclist,State, Status, Boolean).
    I've tried several ways, but EntityDefinitions is still the fastest way, even when there are several requests, they can be called paralle.

    Hope this helps!

     

    Kind regards,

    Diana

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard