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

Report
All responses (
Answers (