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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Querying Multiple Tabl...
Power Apps
Unanswered

Querying Multiple Tables in the Power Apps Component Framework

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am currently working on a component for Dynamics 365 Sales using the Power App Component Framework. I am at the stage where I have my design completed, but now need a way to display the data. I have two tables as follows (one-to-many relationship):

Lead (Default Entity)

Visit (Custom Entity)

  • Lookup called "new_new_parent_leadid" (relationship)
  • DateCreated
  • Duration
  • Value

What Id like to do is query data from Visits table from a component on the Lead form. This component would display the following:

  • Count: Count of all related visits
  • Latest Visit: DateCreated of the latest related record
  • Total Duration: Sum of all Durations of related visits
  • Value: Average of value of related visits

How might I retrieve this data?

Categories:

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard