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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Choose entity out of list and then choose one of the field names of that entity in an canvas app

(0) ShareShare
ReportReport
Posted on by 2

Hello,

I want to make an canvas app in Powerapps where you can from a gallery one of the (custom) entities in CRM. After that I want to choose from the field(names) of that chosen entity.

I know how to make that happen in PowerApps. The problem I'am facing is that I can't find/get the  entities or the fields going with that entity. I tried the following entities in CDS/Dataverse:

  • Entities
  • Entitylist
  • Metadata from entityform

They all show up emtpy. Which table/entity do I have to choose to get a list with all entities in my App and after that which table(s) contain the fields per entity?

Thank you in advance!! 

I have the same question (0)
  • Suggested answer
    Daniel Neudert Profile Picture
    on at

    Hello BrutusG,

    thank you very much for reaching out to the CRM Forum. I did not exactly understand, if you are facing the issue, that no entites/tables and attributes/fields are listed to choose at your gallery datasource, of if you want to get a list of all your (custom) entites and attributes retrieved, to list it at your gallery/CanvasApp itself.

    So please let me explain, in case you cannot see the entities listed, for selecting at DataSource at your Gallery, please make sure, you created the CanvasApp at your particluar CRM/CDS environment selected, and not the default environment:

    pastedimage1611132540267v1.png

    If you want to list all the entites and attributes of your CRM environment, there is no specific Table, at which all entities are listed and I also think, there is no out-of-the-box PowerPlatform Function availalbe, to do this.

    But you can get the metadata and information about all your entites/tables and the attributes, using the WebAPI at your CRM/CDS environment. So it should be possible, you create a Flow or an Azure Function, which retrieves the WebAPI data (using http request or REST), and return the data back to your Canvas App.

    To do so, you can use the WebAPI functions for EntityDefinitions, like:

    https://<org>.crm.dynamics.com/api/data/v9.1/EntityDefinitions?$select=LogicalName,DisplayName
    https://<org>.crm.dynamics.com/api/data/v9.1/EntityDefinitions(LogicalName='account')/Attributes?$select=LogicalName

    This will return in oData v4 Format/JSON all the LogicalNames and DisplayNames of your environment, and the second request, will list all fields/attributes of the "account" entity for example.
    If you are further familiar with the WebAPI, you see, you can also add also different fields, like checking, if it's a customizable entity with the field IsCustomizable, or using the filter for IsCustomizable/Value eq true (https://<org>.crm.dynamics.com/api/data/v9.1/EntityDefinitions?$select=LogicalName,DisplayName,IsCustomizable&$filter=IsCustomizable/Value eq true)

    For more information about the WebAPI function and a possible way, to do so with Flow, please have a look at the following URLs:

    https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/retrieve-metadata-name-metadataid

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

    https://powerapps.microsoft.com/en-us/blog/return-an-array-from-flow-to-powerapps-response-method/

    I hope, this information will further help you with your issue.

    Thank you very much, please let me know, if you have any further questions on this or if this resolved your issue, have a nice day and please stay further healthy.

    Best regards

    Daniel

  • BrutusG Profile Picture
    2 on at

    Thank you for your explanation Daniel!

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 72 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 29 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans