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 multiple att...
Power Apps
Answered

Uploading multiple attachments to a selected folder

(0) ShareShare
ReportReport
Posted on by 122

Hi 

 

Hoping somebody can help me with the below formula. I want to be able to upload multiple attachments to a selected folder in sharepoint. Tthe selected folder is based on a dropdown (ddAttchmentFolderSelect). The below formula enables me to upload the first attachment and is working correctly however how do i expand it to all the attachments so don't have to upload one at a time. I have tried ForAll function but cant seem to get it to work. 

 

UploadFile.Run(
        ddAttachmentFolderSelect.Selected.Value,
        First(FileAttachments.Attachments).Name,
        First(FileAttachments.Attachments).Value
);


Reset(FileAttachments)

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,127 Most Valuable Professional on at

    Hi @Massingc1983 ,

    You can try this - I am not sure how multiple concurrent Flow runs will go though

    ForAll(
     Sequence(CountRows(FileAttachments.Attachments)),
     UploadFile.Run(
     ddAttachmentFolderSelect.Selected.Value,
     Index(FileAttachments.Attachments,Value).Name,
     Index(FileAttachments.Attachments,Value).Value
     )
    );
    Reset(FileAttachments)

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard