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
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!
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.
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.
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.
Here's the email results. One email, all three attachments included.
Hi!
My forms has 3 separate questions.
I can try and put it in one question.
My parse json action:
The code in question:
I also did that, I run a test and I copied the body part
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.
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"
The same thing happens when I try to send the email it only appears "Body" "Responder" "Submit Date"
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).
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.
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.
Save and test.
David_MA
292
Super User 2025 Season 1
Michael E. Gernaey
259
Super User 2025 Season 1
stampcoin
214