Announcements
i have a power app and i am using Gallery to show user comments. i have used HTML text to display comments stored in list. i could show all fields except the attachments. how i can amend below code to show attachments attached for each comment
@Msamir7777 ,
Attachments are a Table, so you could use a nested gallery with ThisItem.Attachments - you could then display the attachment name in this with ThisItem.DisplayName, or you could show all the names in your current Gallery with commas in between with
Concat( ThisItem.Attachments, DisplayName & "," )
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
i have added a nested gallery ( Gallery 1) and added "ThisItem.Attachments" in items, but its giving error
What is the Items of galComments - it needs to be based on the list containing the attachments - or you cannot display them with either of the options I provided.
htmlTimeStamp item is to show author name, and time stamp of the header
imgCommentUser item to show the picture of author
htmlCommentBody item to show the text from list. i tried to show attachments in this item, but it didnt work
i have tried to add a nested gallery to the main gallery (GalComments) and with " ThisItem.Attachments" in items, but it didnt work also.
Yes, but what is the Items of galComments? It needs to be based on the list containing the attachments.
its taking data from a collection, which is linked to the list , but i see that attachment column is missing
I will have another go - what is the Items property of the gallery ? Select the gallery and select Items from the top left drop-down and then post the code in the panel to the right. It needs to be based on the list containing the attachments.
I am having similar template as shown in your attachment. I am trying to Print the request details and responses as a PDF. As request details and Responses are from separate list. How to show all the attachments in the PDF. I used a for loop to collect al responses and attachments. but could able to get the attachments in html format. But its giving error for the attachments
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 402 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 296 Most Valuable Professional