Skip to main content

Notifications

Community site session details

Community site session details

Session Id : vK2NN34lqIz3elypmKMg6Y
Power Automate - Building Flows
Answered

Copying uploaded Form document to new folder

Like (1) ShareShare
ReportReport
Posted on 20 Jan 2025 21:32:03 by

Hello

I'm not a developer so simple explanation please (if possible!)

I have a group form which I created in a Team, and the form has a question which allows for documents to be uploaded.

Using PowerAutomate I want to copy each uploaded document to a different folder within the Teams SharePoint site, however my steps keep failing when trying to get the file metadata with the message 'Route did not match'.

The steps I use are

1) When a new response is submitted

2) Get Response Details

3) Condition Control - Does upload question in response details contain data

4)  Parse json from upload question

5) Get metadata using one of the json fields as File Identifier.

Below are the available json outputs.

            "name",

            "link",

            "id",

            "type",

            "size",

            "referenceId",

            "driveId",

            "status",

            "uploadSessionUrl"

 

thank you!

Laurence

  • Verified answer
    Michael E. Gernaey Profile Picture
    35,719 Super User 2025 Season 1 on 09 Feb 2025 at 19:20:25
    Copying uploaded Form document to new folder
    Hi
     
    I would need to see the real flow. What you have wont work. You dont need a file identifier.
     
    You simply use the incoming File that was uploaded to grab the Bits, then use a Create File action.
    You would look through them of course to do them all, and how you figure out the name and folder it does too is different.
     
    But logically, its a simple case of
     
    Loop through JSON(uploadformquestion)
    Use Create File, pass it the bits from the currentItem of the apply to each/loop
     
    Also, its always good to not just show the flow, but show the Run that failed, with the inputs and outputs so we can help more.

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,369 Most Valuable Professional

Leaderboard
Loading complete