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 / How to store file atta...
Power Apps
Suggested Answer

How to store file attachment information in a collection

(1) ShareShare
ReportReport
Posted on by 20
I have a gallery that allows update of information. In this gallery, I need to also have an attachment field.  How do I store the attachment information of each row of the gallery and eventually update my sharepoint list with this atachment information.
 
Any help appreciated.
 
Thanks
Categories:
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    You can something like below to save the Value and Name of the attachments to the collection by using a Button.
    ForAll(
        Filter(
            Gallery.AllItems,
            !IsBlank(First(AttachControl.Attachments).Name)
        ),
        Collect(
            colAttachments,
            {
                Name: First(AttachControl.Attachments).Name,
                Value: First(AttachControl.Attachments).Value
            }
        )
    )
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
  • Nandit Profile Picture
    1,568 Moderator on at
    Hi,

    Following up to check if you were able to solve this issue using my suggestion?

    Kind regards,
    Nandit

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard