Skip to main content

Notifications

Community site session details

Community site session details

Session Id : MXFlZ8a2pTGxodVRWYlVDw
Power Automate - Building Flows
Unanswered

Send Email attachment from uploaded via Forms power automate premium

Like (1) ShareShare
ReportReport
Posted on 7 Nov 2023 17:29:23 by 29

Hi!

How can I send the email with the attachment they are uploading via Forms? Theres three different files. I also have Power Automate Premium. 

I know the last step is sending an email to the email that they put on the Forms but i don't know how to attach the files

  • trice602 Profile Picture
    13,768 Super User 2025 Season 1 on 08 Nov 2023 at 20:38:30
    Re: Send Email attachment from uploaded via Forms power automate premium

    Hi @000035C ,

     

    Here's an adjusted flow that works in testing.  The caveat here is my form has one question and I get all 3 files in a single question/upload.  You will have to decide if you want to adopt this format.  That said, I encourage you to go through the exercise and do the steps and learn from the process (just like I did too).

     

    If this was helpful, please mark as a solution too!

     

    trice602_0-1699475263169.png

     

    trice602_1-1699475303061.png

     

    trice602_2-1699475331159.png

     

    Again, on the parse json action:

     

    Step#1 I get the output from my get response details.  Content is the question from the form.

     

    Step#2 I click on generate from sample and paste in my output from step#1.

     

    Step #3 Your schema should look similar to the one below.

     

    trice602_3-1699475461171.png

     

    Next Get file content and select id from your parse json action.  This will automatically wrap in an apply to each, shown below.  Next we want to append our array variable with the output of the results to email downstream.  In the append variable action, type in the json exactly like you see it below.

     

    trice602_5-1699475591645.png

     

    Lastly, outside of your apply to each send email V2.  For the attachments, click on the icon next to the right of the field and select your attachment1 variable, shown below.

     

    trice602_6-1699475697641.png

     

    Here's the email results.  One email, all three attachments included.

     

    trice602_7-1699475747320.png

     

     

  • CU29081211-0 Profile Picture
    29 on 08 Nov 2023 at 17:05:33
    Re: Send Email attachment from uploaded via Forms power automate premium

    Hi!

    My forms has 3 separate questions. Captura de ecrĂŁ 2023-11-08 165856.png

     I can try and put it in one question. 

    My parse json action: 
    Captura de ecrĂŁ 2023-11-08 170026.png

     

    The code in question: 

    {
        "type""object",
        "properties": {
            "type": {
                "type""string"
            },
            "properties": {
                "type""object",
                "properties": {
                    "responder": {
                        "type""object",
                        "properties": {
                            "type": {
                                "type""string"
                            }
                        }
                    },
                    "submitDate": {
                        "type""object",
                        "properties": {
                            "type": {
                                "type""string"
                            }
                        }
                    },
                    "rc1d2e5f31e1b474dab1cf3e9fdd6b000": {
                        "type""object",
                        "properties": {
                            "type": {
                                "type""string"
                            }
                        }
                    },
                    "r65b774a6313b43b1b9b7a9f70d40840a": {
                        "type""object",
                        "properties": {
                            "type": {
                                "type""string"
                            }
                        }
                    },
                    "r2aa9300984444819aa311bd2b941d519": {
                        "type""object",
                        "properties": {
                            "type": {
                                "type""string"
                            }
                        }
                    },
                    "r48f19f220137431d90abff4e77a41267": {
                        "type""object",
                        "properties": {
                            "type": {
                                "type""string"
                            }
                        }
                    },
                    "r89995742c541467fb425466443db89f9": {
                        "type""object",
                        "properties": {
                            "type": {
                                "type""string"
                            }
                        }
                    }
                }
            }
        }
    }


    I also did that, I run a test and I copied the body partSem tĂ­tulo.png

     

     

  • trice602 Profile Picture
    13,768 Super User 2025 Season 1 on 08 Nov 2023 at 16:56:00
    Re: Send Email attachment from uploaded via Forms power automate premium

    Hi @000035C ,

     

    Does your form have one question to upload 3 files or 3 separate questions?  Please share your form screenshot.

     

    To help troubleshoot this, you need to expand your parse json action and paste in here please.  The root cause is your parse json schema is incorrect.  I get my sample from the output of get response details from a previous run.  Please look at my example.  I have a question in my form called "Add a file".

     

    In my parse json action, I click on generate from sample and paste in the sample I copied from the output of get response details. 

     

     

  • CU29081211-0 Profile Picture
    29 on 08 Nov 2023 at 12:19:31
    Re: Send Email attachment from uploaded via Forms power automate premium

    Hi! 

    So I did that, I also copy paste the "body" of the outputs of get response details. But when it only appears "Body" in Get File Content, I don't have the option of "id"Captura de ecrĂŁ 2023-11-08 121531.png

     
    The same thing happens when I try to send the email it only appears "Body" "Responder" "Submit Date"Captura de ecrĂŁ 2023-11-08 121606.png

     

  • trice602 Profile Picture
    13,768 Super User 2025 Season 1 on 07 Nov 2023 at 17:57:42
    Re: Send Email attachment from uploaded via Forms power automate premium

    Hi @000035C ,

     

    Here's the step that will help you solve this.  Please let me know.  In this example, after your trigger and get form response.  Save and test.  You need the json output from get responses.  In my example, I have a question named Add a file (and can add up to 5 files at one time).

     

    trice602_0-1699379444508.png

     

     

    Next add the action parson json (shown above).  You want to take the output from get responses (the json) and select your dynamic question for the content, next click Generate from sample button, paste in your sample, press ok.  This will give you something like this (above).

     

    Next I add Get content action and reference the ID in my parse json output.  This will automatically wrap in a for each because there may be more than one attachment.

     

    trice602_3-1699379757188.png

     

    Notice in the attachment section in the send email V2 action, I am referring to the json value name (for file uploaded name) and attachment content which is the body get file content action, shown below.

     

    trice602_2-1699379703404.png

     

     

    Save and test.  

     

     

     

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 292 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 259 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 214

Overall leaderboard
Loading started