web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Onedrive Get File Cont...
Power Automate
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.

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @elbent ,

     

    Please use get file content using path action.

    vxiaochenmsft_0-1715311346471.png

     

     

    Best Regards,

    Wearsky

  • elbent Profile Picture
    87 on at

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard