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 / Upload Attachment to S...
Power Apps
Unanswered

Upload Attachment to Specific Nested Folder in Library

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator
 
Need:

I have the need to dynamically decide to which Folder/Subfolder in a Library an attachment is uploaded.

Background:
I have a Flow that creates a Folder and Nested Folders whenever a new item is created in a SharePoint List.

This function works fine.

I, also, have a Flow that is uploading attachments to a specific Subfolder. That function works fine.

I would like the ability to upload the attachment to a specific Subfolder assoicated with the name of the individual, as chosen in the Gallery. All attachments should be routed to the Root folder associated with the name of the client, and uploaded to the Subfolder associated with the 'type' of document being uploaded.

Components: 
My 'Upload Attachments' button has the following formula -
UploadClientAttachmentsFlow.Run(Upload_Client_ID_Fld.Text,Label15.Text,TextInput1_3.Text,
{ file: {
          contentBytes: First(Client_Attachments_Control_2.Attachments).Value,
                      name: First(Client_Attachments_Control_2.Attachments).Name
         }
});

The user has the ability to choose, from a Dropdown box, the type of attachment being uploaded. That choice is also used in the naming of the file when it is uploaded to the Library.

Example:
If the user wants to upload a 'Drivers License' (as chosen in the Gallery), related document associated with client 'Olive Oil' (as chosen in the Gallery), the Flow should route the document to the Root folder for 'Olive Oil' and add it to her 'Drivers License' subfolder.

My Power Apps Attachment Upload Gallery -

Phineas_0-1698607309770.png

 


My 'Upload Attacments' Flow -

Phineas_1-1698607309812.png

 


My preferred upload folder/subfolders -

Phineas_2-1698607309815.png

 

Phineas_3-1698607309832.png

 

 

Categories:
I have the same question (0)

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 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard