Forum Discussion
Attach Microsoft Forms response in email
- Jun 12, 2019
Hi Joel2275
There's currently no direct way to get the result in this way.
However, you could try instead to use Microsoft Flow and when a new form is submitted, to have the results emailed to you (see my template below as an example).
Step 1 - Use this to retrieve the submitted forms info.
Step 2 - Using Outlook - Send an email (V2), you can specify yourself as the recipient and then populate the Body with the headers and (green) form attributes.
Would save you having to actually hunt for the result in Forms as it's sent directly to your inbox.
Hope that makes sense?
Cheers
Damien
Hi Joel2275
There's currently no direct way to get the result in this way.
However, you could try instead to use Microsoft Flow and when a new form is submitted, to have the results emailed to you (see my template below as an example).
Step 1 - Use this to retrieve the submitted forms info.
Step 2 - Using Outlook - Send an email (V2), you can specify yourself as the recipient and then populate the Body with the headers and (green) form attributes.
Would save you having to actually hunt for the result in Forms as it's sent directly to your inbox.
Hope that makes sense?
Cheers
Damien
- AtowrissJul 26, 2021Copper Contributor
I tried to follow what you did above, but am getting this error message: Fix invalid expression(s) for the input parameter(s) of operation 'Get_response_details'.
I just clicked on the options under the 'Get Response Details'- nothing was hand-typed. What am I doing wrong?
- RobElliottJul 26, 2021Silver Contributor
Atowriss there are 2 things wrong in your get response details action:
1) In the Form ID you need to select the form from the dropdown, not type its name in the field (but you might have already done this). The only exception to this is if it's a group form where you copy the ID of the form into the field.2) In the Response ID field the only thing that must be there is Response ID selected from the dynamic content box. For some reason you've got resourcedata and body there as well.
Rob
Los Gallardos
Microsoft Power Automate Community Super User- AtowrissJul 27, 2021Copper ContributorThank You!
- michellekafelMar 09, 2021Copper Contributor
Damien_Rosario RobElliott Joel2275
Appreciate all the responses thus far. I'm not as familiar with FLOW, FORMS and most OFFICE Apps as I could be, but am learning...
Hoping to get some further advice/instructions on how to accomplish a similar FORM-FLOW setup.
I have a Form created, and set up a FLOW to email it to our HelpDesk system (Solarwinds). So far, I've been able to set it up so that the email sent to our HelpDesk generates a new ticket, however, there is no info in the body of the email. What I WANT is the email to HelpDesk to include the link to the FORM response. I don't need it to send the specific responses to the body of the HelpDesk ticket. A link back to the responses is fine. I just don't know how to set that up.
I hope I'm explaining it well enough...Any help or clarifying questions, please lmk.
Best,
MK- Damien_RosarioMar 10, 2021Silver Contributor
I hope you are well.
I'm not aware of any easy way to extract the actual form response link itself and have it emailed to SolarWinds via Power Automate.
I would suggest just populating the email with the relevant fields so that the response is captured in the body (I know it's not what you wanted but it's one of the viable options you can do [recommended])
OR
you can dump the output of the form response into a file to then attach to the email and send (this will require more work).
Looking at your Flow, you'll need to have Get responses to allow you to grab the form responses to add into your email (using Dynamic content) before sending the email.
Hope something in there helps.
Cheers & best wishes
Damien
- michellekafelMar 10, 2021Copper Contributor
Another quick question -
Must I have the Microsoft Pro license to use Power Automate to create this template with GET RESPONSES?
I may outsource this if I cannot do it myself, but I want to at least give it the 'ol college try!
Thanks again for the feedback.
Best,
Michelle
- oemmanuelliMar 09, 2021Copper Contributor
michellekafel if I understand the process correctly, from a previous flow I put together. all your form answers are collected in an online spreadsheet. You should be able to share the link to the responses in the body of the OUTGOING email telling your team there is a new response. Always the same link embedded in said email.
You should be able to access it from the admin page of the form itself.
This link will be to all responses generated by that form, but will be sent as soon as a new entry is added. That's as easy as it gets.
- michellekafelMar 09, 2021Copper ContributorI understand that, but I don't think I set up the FLOW correctly, then. So far, I only get a new ticket created (the email to HelpDesk) w/no info or links to further data. The body of the ticket/email is blank.
- oemmanuelliMay 10, 2020Copper Contributor
Hi Damien:
I noticed your response in this tread about emailing responses in a formatted email. At our office we have a similar need. We have a form our patients fill out. The form was built in MS Forms online through XL. We receive the responses in the XL file online and from there construct the resulting form to "print" in the office to PDF.
I've tried to build the resulting form FIELD BY FIELD in word to absorb the responses, but either due to our version of office365 or other limitations, the WORD CONNECTOR wont fill in the blanks. The form is complex in the sense of having several pages but simple since it does not re-use data or use conditionals or other operators.
I've looked up several videos on the matter but some of the workflows dont seem to FIT.
Was wondering if you had any thoughts on it.
Thanks!
- Joel2275Jun 12, 2019Copper Contributor
Hi Damien,
Thank you. For the body in the send an email section of the flow, would I have to put a heading for every question I have included in my form for it to display the results in an email? I have included around 25 quesitons in my form. Damien_Rosario
- Damien_RosarioJun 13, 2019Silver Contributor
Hi Joel2275
Yes, the outputs will likely be meaningless without headers.
And as RobElliott has shown, you can also format the email to present a particular format which is handy when you want to see things in certain ways.
I would suggest having a play with the email option, I suspect it's the best way for you to resolve your issue.
Tag us in if you have any issues and we can help you navigate it, but I think you'll be alright!
Cheers and best wishes
Damien
- Joel2275Jun 13, 2019Copper Contributor
Hi Damien,
I've been playing around with the email option as you suggested and have gotten it to work. The responses are now being directly attached to the email which is working fantastic for me. Thank you. Damien_Rosario
- RobElliottJun 12, 2019Silver Contributor
Joel2275 yes, you would put in whatever makes it clear to you what the questions and answers were. Rob
Los Gallardos
- ersula82Jan 19, 2021Copper Contributor
This is what I needed. The only question I have is what about the form responses that the user leaves blank? I created a form that has branching so the user may not have a need to answer all of the questions.
If they don't answer all of the question, I will be generating an email that has a bunch of null answers. Do you have any suggestions as to how I can send emails from Microsoft Flow only for the questions people answer?
- RobElliottJun 12, 2019Silver Contributor
Damien_Rosario yes that's the way we do it as well: send an email via flow to the responder which can be nicely formatted with our logo etc and any other info we want to give them, and we often then add the response to a SharePoint list.
Rob
Los Gallardos