cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tamras
Level 10

Display list of Attachments

Is there another way to list all the attachments rather than just the first attachment? I'm currently using this formula to display an attachment on a Verification Screen (screen before submit). 

First(DataCardValue49.Attachments).Name

I need to list all attachments or somehow create a collection of all attachments file names then use gallery to display the collection? 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Display list of Attachments

Hi @Tamras 

 

To get the Name of all the attachments, you can use the below expression on a ListBox type control. This is an appropriate control to show one column table type data.
 
Expression: DataCardValue49.Attachments.Name

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

3 REPLIES 3
Super User
Super User

Re: Display list of Attachments

Hi @Tamras 

 

To get the Name of all the attachments, you can use the below expression on a ListBox type control. This is an appropriate control to show one column table type data.
 
Expression: DataCardValue49.Attachments.Name

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Tamras
Level 10

Re: Display list of Attachments

@yashag2255 Thank you. I didnt think to use a list box.  Make sense though.  I also found this blog which works as well for creating collection out of the attachment box.  

Super User
Super User

Re: Display list of Attachments

Hi @Tamras 

 

Yes, you can definitely use a collection to store the values and can use this collection throughout the app. Using List Box was just an example, this data could be integrated with any type of control, if the data is provided in correct format. 

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 234 members 4,312 guests
Please welcome our newest community members: