I have a form built in Microsoft Forms; it has an upload attachment question, and multiple branches to different sections within the form. I need to set up a flow that would send an email when someone submits a response through the form, and the email would include the responses to the questions in the form, and any attachments that are uploaded. If possible, I would love for the email to only include the questions that have a response, and not all the questions that do not have a response.
Thank you!
Hi @BSh70 ,
Based on your description, i have made a test for your reference.
1. Here is my MS Forms.
2. Here is my Flow.
empty(Dynamic Content)
QuestionName: Dynamic Content<br />
json(Dynamic Content)
items('Apply_to_each')?['id']
{
"Name": @{items('Apply_to_each')?['name']},
"ContentBytes": @{body('Get_file_content')}
}
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
@{variables('varhtml')}
</body>
</html>
Result Screenshot:
In addition, here are some links that for your reference.
https://willpage.dev/2021/06/01/processing-microsoft-forms-file-upload-in-power-automate/
Best Regards,
Charlie Choi
Hi @BSh70 ,
Please the below Power Automate Flow template for sending email once the response from MS Forms has been submitted.
Send an email to responder when response submitted in Microsoft Forms | Microsoft Power Automate
Also, if you need to have only questions answered to be shown in the email, Please refer the below link.
Microsoft Flow - Email Notification on Form Completion with Flow (using a template) (lsuhsc.edu)
In the above example you need to use if statement to check the answered questions.
WarrenBelz
146,552
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional