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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Data entity keys

(0) ShareShare
ReportReport
Posted on by 680

Hi,

Does the EntityKey under a data entity in VS affect the retrieval time of certain records in a 3rd party application (e.g., PowerApps) which uses this entity?

For example, if it takes too long to retrieve records which use an data entity field as a filter in PowerApps, should I add that entity field to the existing EntityKey to reduce the retrieval time?

Thank you. 

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    EntityKey defines the unique key for the entity. The combination of the fields in EntityKey always link to exactly one record in the underlying data source table.

    In general, when you search data in a database, you need to have proper indexes in the tables to correspond with the fields that you use as search criteria. So you should check if your entity data source table has indexes that correspond to your filter fields in PowerApps.

    This is a high level description, details would depend on the details of your situation.

  • Suggested answer
    Pete Alberts Profile Picture
    3,546 on at

    Hi Shawn

    I'd like to add on to Nikolaos. The postLoad() method adds a considerable amount of processing time (it will execute for every record). If it has been overriden, try to replace the logic with computed columns or maybe some nifty joins.

    Then do not use the OData group functionality. It's terrible. If you need to group you are calling the wrong DE. Create a new one if the required one does not yet exist.

    You can simulate an OData GET with a select statement of the DE. Which should set some light on any possible causes of the slowness you describe.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 637

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 594 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 356

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans