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 / Uploading Attachments ...
Power Apps
Unanswered

Uploading Attachments to a sharepoint list record using gallery to select

(1) ShareShare
ReportReport
Posted on by 4
Hi.
 
I have a gallery which shows a series of word files in a folder, which the user can select with a checkbox
 
Along with various bits of form data collected in the app, at the end the user can submit the data to a single record in a sharepoint list.
Handling and submitting the data collected in the forms is easy, but I am stuck at how to get the attachments selected in the gallery in the sharepoint list.
 
The purpose is to build a document at the end of the process using power automate, some template word files , and the attachments the user has selected.
 
Any idea's?
 
 
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    Hi,
     
    The proper way would be to have an attachment control on the Form. When people select them in your gallery, add them to the Attachment Control, so that they are automatically added to item in SharePoint.
     
    The other way would be to pass a reference of them to Power Automate and it do it.
     
    I would use the form Control.
    Here are some references for learning. Use the OnCheck / UnCheck events to add/remove it to the form control, which will be on a Data card on the Form.
     
     
    Cheers
     
  • SB-05021429-0 Profile Picture
    4 on at
    Thanks @FLMike, this is what I have been understanding through research. I have looked the links you kindly shared. Whilst they show loads of useful info on the attachment control, I couldn't see anything about how to get the attachment control to work with the gallery.
     
    Currently my Gallery (RAMSGallery) data source is a folder within sharepoint containing the word documents. I have a Sharepoint list (SafetyList) where ultimately these attachments will go.
     
    Any other suggestions or tips how to get this all linked up would be great.
  • WarrenBelz Profile Picture
    155,444 Most Valuable Professional on at
    You did not specify the type of Folder, but assuming it is a SharePoint document library, you need a Flow as below and send two ID references - one from the Library file and the other the List record you want to attach it to.
    If you are selecting multiple files, run the Flow inside a ForAll statement (example)
    ForAll(
       Filter(
          GalleryName.AllItems,
          CheckboxName.Value
       ) As _Files,
       FlowName.Run(
          YourTargetListID,
          YourListID,
          _Files.ID
       )
    )
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
  • SB-05021429-0 Profile Picture
    4 on at
    Hey
     
    I might well be being very dumb on this as some of the terminolgy is a little new to me, and I am quite rusty on some other bits but I believe I did create the flow successfully.
    I have never triggered a flow from Powerapps, so when I built the script as you instructed (OnSelect on a button), I must have done something wrong or not understood what you ment. 
     
    Thanks in advance!
     
    Simon
     
  • WarrenBelz Profile Picture
    155,444 Most Valuable Professional on at
    I posted an example of the required structure - the references will depend on your values. Firstly, you are missing .AllItems from the Gallery reference and if you are using a Modern Checkbox, you need .Checked, not .Value (which is a Classic Checkbox). You are also going to need the ID of the List record you want to attach it to (as per the example Flow)

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard