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 / Get file from Microsof...
Power Automate
Answered

Get file from Microsoft Forms

(0) ShareShare
ReportReport
Posted on by 2,297
Hello,
 
Can someone please explain me how to get a file submitted through MS Forms into Power Automate?
I want to send it to a prompt.
I've tried a million things and nothing works.
This is frustrating, horrible and depressing, I hate Power Automate, but unfortunately, I must keep going...
 
Yes, I've also tried Parse JSON, whatever that is, but NO GO.
 
Thank you in advance.
Categories:
I have the same question (0)
  • Tomac Profile Picture
    4,105 Moderator on at
    Structure looks good. The file might not be settled in SharePoint/OneDrive when you're trying to access it. Sometimes file settlement takes up to 10 minutes. Try adding a Delay action set to 10 minutes after the Get Response Details action.
  • WebPortal Profile Picture
    2,297 on at
    @Tomac

    I have been the whole day with this S***
     
    The file is there, i can open it on the browser.
  • Verified answer
    Pstork1 Profile Picture
    69,462 Most Valuable Professional on at
    I wrote a Blog on how to retrieve the contents of a file that is uploaded via MS Forms so you can email it out.  Take a look at steps 1-4 of this blog post.
    Emailing File Attachments from Forms with Power Automate – What Me Pa..Panic?  In the Blog I use the ID of the file to retrieve it and then use that to get the file content.  Its easier than trying to do something with a path.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • WebPortal Profile Picture
    2,297 on at
    Thanks @Pstork1
     
    I've replicated your example, and was able to send an email to myself with the attachment.
     
    Now, for the last step, "Run a prompt", I get the error:
     
    Action 'Run_a_prompt' failed: {"operationStatus":"Error","error":{"type":"Error","code":"InvalidPredictionInput","message":"{\"code\":\"BadRequest\",\"message\":\"Invalid image data.\",\"type\":\"\",\"param\":\"\",\"status\":0,\"innererror\":{\"code\":\"\",\"content_filter_result\":{}}}","properties":{"BackendErrorCode":"InvalidInferenceInput","DependencyHttpStatusCode":"400"},"innerErrors":[{"scope":"Generic","target":null,"code":"InvalidImage","type":"Error","properties":{"MlIssueCode":"InvalidImage"}}]},"predictionId":null}
     
    The prompt expects a jpg file, and that was what I thought I'd be giving it, by passing the array variable to it:
     
     
    This is the raw input I get from the flow execution:
     
    {
        "host": {
            "connectionReferenceName": "shared_commondataserviceforapps",
            "operationId": "PredictV2"
        },
        "parameters": {
            "recordId": "4f105d6a-644d-4b07-bd0f-d286e121de5e",
            "item/requestv2/Document_20input/base64Encoded": [
                {
                    "Name": "Myimage.jpg",
                    "ContentBytes": {
                        "$content-type": "image/jpeg",
                        "$content": "/9j/4AsdasdJRgABAQAAAQABAAD/2wCEAAY"
                    }
                }
            ]
        }
    }
     
    This is the whole flow:
  • Pstork1 Profile Picture
    69,462 Most Valuable Professional on at
    Sorry, I'm not familiar with the run a prompt action. What connection is that part of? What exactly are you trying to do?

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • WebPortal Profile Picture
    2,297 on at
    @Pstork1 I'm trying to build the most basic Proof of Concept for a "Reads Receipt" prompt.
     
    I've elaborated the question with more detail here:
     
     
    Thank You!

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 Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard