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 Automate / Auto or manually selec...
Power Automate
Answered

Auto or manually select subfolder to upload files to SharePoint from Power Apps using Power Automate

(0) ShareShare
ReportReport
Posted on by 138

Hi all,

 

I am brand new to Power Automate but have at least a little Power Apps experience. I am working on creating an enrollment tracker for my organization's preschools. I already have an instant cloud flow set up that when a new child is added, a folder with their name is automatically created in a SharePoint Library titled 'New Enrollments'. I am hoping there is a simple way for me to allow users to upload documents to that new subfolder from the Power App. There are a couple ways I think would work:

 

1. Having an 'upload documents' button where a window pops up with all subfolders displayed, allowing the user to select which subfolder to upload the documents to (not ideal but it'll work).

 

2. Writing some kind of code that auto-selects the correct subfolder to upload documents to, so the user can just click an 'Upload documents' button and not have to manually search for the correct folder.

 

The initial child folders are created based off of the name the user inputs into a Form, so that the file and the Power App forms have the exact same name. I feel like maybe there's a way to use this (something like an upload to Selected.Gallery1.ChildName), but I have no idea if that's correct.

 

Thanks in advance!

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @susannarae , you can pass the ChildName (which is also folder name) from PowerApps to Power automate flow.

  • susannarae Profile Picture
    138 on at

    @annajhaveri that's what I was hoping I could do, but I'm not sure HOW to do it? Would you be able to give me a breakdown/walkthrough?

  • Verified answer
    annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @susannarae , I would suggest first to create the flow with PowerApps trigger, and for the data that you need from PowerApps,  add action to your flows and select Ask in PowerApps from Dynamic Content to user parameters that are passed from PowerApps to Power Automate flow.

    annajhaveri_1-1612445271581.png

    Once your flow is ready. you can use the flow in PowerApp using instructions here https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/using-logic-flows#add-a-flow-to-an-app

     

     

  • JustITGuy Profile Picture
    12 on at

    Hi

    Im trying to achieve the same above and what you suggested   isn't what we are asking, we know how to create a flow but what we are trying to figure out is how does someone set this up, we need instructions or guides on it.

     

    Kind Regards

    JustITGuy

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @JustITGuy  you need guidance on how to setup uploading a file from PowerApps to SharePoint folder?

  • JustITGuy Profile Picture
    12 on at

    Hi 

    I have created a flow and i can already upload a files/images from PowerApps to Sharepoint folder but what im trying to find out if its possible to specify a folder location in PowerApps and upload my images to that folder. the reason why i ask is because we will be uploading images to different folders  on every other day. 

     

    Kind Regards

    JustITGuy

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @JustITGuy yes it is possible to upload files to different folders from PowerApp, but pass the folder path from PowerApp to flow using flow.run(folderpath), then in flow Ask in PowerApps to get parameter value from PowerApps.

  • JustITGuy Profile Picture
    12 on at

    Hi 

    Will you be able to explain that in a bit more details please? if its solvable then that will help answer the question i have been stuck on for a few weeks.

    Thank you in Advance.

     

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    So i assume that your flow to upload files and PowerApps with attachment control already exists, let me know if you need any inputs on that.

    1. In your flow, click inside the input box for Folder Path in Create File action, click on Ask in PowerApps from dynamic content, which will add CreateFile_FolderPath to Folder Path parameter as shown below

    annajhaveri_0-1627991928261.png

     

    2. Then in PowerApps, how you want your attachment to be saved, on file being added to attachment control or on button click, whichever option you need, you need to write following code in the event on button click or OnAddFile event of attachment control

    UploadAttachments.Run("put your folder path here")

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 Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard