Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Onedrive Get File Content not working with Microsoft Forms

(1) ShareShare
ReportReport
Posted on by 87

I have a flow that is triggered when a new Form is submitted and saves the response data in a Sharepoint list. The form has an attachment, so I need to get the attachment into Sharepoint. I followed the instructions here to use the Onedrive path to grab the attachment and then the Add Attachment, but it is not working. I get an error that the file does not exist. I am certain that the path is correct.

 

elbent_0-1715262857418.png

 

Here is the path to the file I am trying to get. To dynamically get the file name I am using the expression first(body('Parse_JSON'))?['name'] in place of the file name, and when I run the flow, below is the output of the get file content action. As you can see, the path is identical to the file path above.:

 

{
 "status": 400,
 "message": "The file id '/Apps/Microsoft Forms/Graphic Design Requests/Question/front-at-cleveland-public-library-5-of-31-1_Elizabeth Bentivegna.jpg' is not valid.",
 "source": "api.connectorp.svc.ms"
}

 

Oddly enough, I am doing this exact same thing in another flow with a different Form and it works perfectly. What am I doing wrong? Thanks.

  • elbent Profile Picture
    elbent 87 on at
    Re: Onedrive Get File Content not working with Microsoft Forms

    Thank you, this was the answer. Silly mistake on my part.

  • Verified answer
    Re: Onedrive Get File Content not working with Microsoft Forms

    Hi @elbent ,

     

    Please use get file content using path action.

    vxiaochenmsft_0-1715311346471.png

     

     

    Best Regards,

    Wearsky

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard

Featured topics