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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Display all attachment...
Power Apps
Answered

Display all attachments from dataverse table in form

(0) ShareShare
ReportReport
Posted on by 14

I have a new form in powerapps which is created on top of the dataverse table. I am able to attach multiple attachment to the attachment column and submit the record. 

I have another screen to view the created records but in the view forms, I am able to see only the last single  attachment. Is it possible to view all the attachments in the form view mode? I only managed to create following formula in default property of Attachment field but it shows only last attachment uploaded. How I can iterate through attachments? 

 

//Creates table to display all attachments

Spoiler (Highlight to read)
If(!IsBlank(ThisItem.Attachments.FileName), Table({DisplayName: ThisItem.Attachments.FileName, Value: ThisItem.Attachments.Value}), Blank())
If(!IsBlank(ThisItem.Attachments.FileName), Table({DisplayName: ThisItem.Attachments.FileName, Value: ThisItem.Attachments.Value}), Blank())

 

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @jakub_mar ,

     

    The file column can only store one attachment instead of multiple attachments. 

    I believe you have uploaded multiple files in the attachment control when you used app, but it will actually only add one of the files when you click on the submit button.

    If you want to save multiple attachments, please turn on enable attachment setting for the table.

    vxiaochenmsft_0-1717554810553.png

    Then the attachments will then be stored in the note table associated with your table.

     

    Best Regards,

    Wearsky

  • jakub_mar Profile Picture
    14 on at

    Hi Wearsky,

     

    Thank you for your support. I see right now that relation to the table with attachment has been made when I enabled attachments in my table. However, how should I modify my formula to display all attachment on the form based on this relationship made?

     

     

     

    jakub_mar_0-1717571256249.png

     

    //Creates table to display all attachments
    If(!IsBlank(ThisItem.'Attachments (jm_attachments)'), Table({DisplayName: ThisItem.'Attachments (jm_attachments)'.FileName, Value: ThisItem.'Attachments (jm_attachments)'.Value}), Blank())

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @jakub_mar ,

     

    I think you just need to add the attachment card, and the app will generate the formula automatically.

     

    vxiaochenmsft_0-1717572278811.png

    vxiaochenmsft_1-1717572292582.png

    vxiaochenmsft_2-1717572307831.png

    vxiaochenmsft_3-1717572319172.png

     

    Best Regards,

    Wearsky

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 419

#2
WarrenBelz Profile Picture

WarrenBelz 397 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 345 Super User 2025 Season 2

Last 30 days Overall leaderboard