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 / Filter child record an...
Power Apps
Unanswered

Filter child record and display with parent record for particular parent id (datasource = sharepoint)

(0) ShareShare
ReportReport
Posted on by 14

Hi, I have an attachment child list for a Parent form list, so when parent list data is populating, I want to fetch and display the respective attachments from the child list for that parent id

 

How I am trying to achieve this :

I have multiple line item in child list for one parent id , so I need to filter based on column in child list called column section (choice column) 

 

This is the code I am applying in item property of attachment control :

 

If(
CountRows(
Filter(
env_PremisesAttachments,
And('Parent ID New' = varPremisesformdata.ID, 'Column Section'.Value="Relocation - Premise Declaration Form"))
) >0,

Filter(
env_PremisesAttachments,
LookUp(env_PremisesAttachments,
And('Parent ID New' = varPremisesformdata.ID, 'Column Section'.Value="Relocation - Premise Declaration Form"), ID)),

Defaults(env_PremisesAttachments))

 

where,

env_PremisesAttachments : Child Table

Parent ID New : Column in Child table

varPremisesformdata : parent line item record

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard