Common ways to use Microsoft Forms in Power Automate - Power Automate (2023)

  • Article

If you're not sure where to start, these are some of the most common ways people use Microsoft Forms with Power Automate:

  • Send an email when there's a new form response
  • Send an email to the form responder
  • Send an approval request with the form details
  • Add form responses to an Excel worksheet
  • Get an attachment from a form and send it in an email

Send an email when there's a new form response

You can turn on email notifications for the form's owners in your form settings. If you want someone else to be notified when a response is submitted, create a custom email notification with Power Automate.

We'll start with a pre-built template and customize it to help our managers plan for employees' summer vacations.

  1. Search for "Microsoft Forms" in the Power Automate template gallery and select the template named "Notify me in Outlook when a student completes a quiz."

  2. Sign in to the connectors, if needed, and select Continue.

  3. In the first step in the flow, "When a new response is submitted," select your form in the Form Id box.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (1)

  4. In the next step in the flow, "Apply to each," select your form again in the Form Id box. Leave everything else as it is.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (2)

  5. Skip the Office 365 "Get my profile (V2)" step. (If you don't need to send the email to yourself, you may delete this step.)

  6. In the final step in the flow, "Send an email," enter the recipients, subject, and body of the email. Select dynamic content to include details from the form response in your email.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (3)

  7. Select the flow name at the top of the Power Automate canvas and change it as you like.

  8. Save and test your flow.

Send an email to the form responder

You can turn on email receipts for respondents in your form settings. If you want to customize the email they receive, use Power Automate.

Follow the steps to send an email when there's a new form response, but send the email to the responder.

Common ways to use Microsoft Forms in Power Automate - Power Automate (4)

Send an approval request with the form details

In this example, we'll start with another pre-built template and customize it to create a vacation approval request.

  1. Search for "Microsoft Forms" in the Power Automate template gallery and select the template named "Send form responses for approval."

  2. Sign in to or create the connectors, as needed, and select Continue.

  3. In the first step in the flow, "When a new response is submitted," select your form in the Form Id box.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (5)

  4. In the next step in the flow, "Apply to each," select your form again in the Form Id box. Leave everything else as it is.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (6)

  5. In the next step in the flow, "Start and wait for an approval," select the Approval type, enter a Title, and enter the approvers' email addresses in Assigned to. Select dynamic content to include details from the form response in the approval request.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (7)

  6. Skip the "Condition" action.

  7. In the "If yes" step:

    • Delete the SharePoint action that comes with the template.
    • Add an Office 365 Outlook "Send an email (V2)" action.
    • In the To box, select the dynamic content Responders' Email.
    • Enter the subject and body of the email.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (8)

  8. In the "If no" step:

    • Delete the Office 365 "Get my profile (V2)" step that comes with the template.
    • In the "Send an email (V2)" action, in the To box, select the dynamic content Responders' Email.
    • Enter the subject and body of the email.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (9)

  9. Select the flow name at the top of the Power Automate canvas and change it as you like.

  10. Save and test your flow.

More examples of approval flows are in the documentation.

Add form responses to an Excel worksheet

In this example, we'll create a flow from blank. Continuing with the scenario from our earlier examples, we'll use the flow to record employees' names and vacation dates in an Excel table when they submit their summer vacation form.

  1. Create a workbook in Excel Online. Add a table with one column for each question on your form. Save and close the workbook.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (10)

  2. In Power Automate, create an automated cloud flow from blank. Select the Microsoft Forms "When a new response is submitted" trigger.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (11)

  3. In the first step in the flow, "When a new response is submitted," select your form in the Form Id box.

  4. Add a step to your flow:

    • Search for "forms" and select Microsoft Forms.
    • Select Get response details.
    • Select your form in the Form Id box.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (12)

  5. Add a step to your flow:

    • Search for "profile" and select Office 365 Users.
    • Select Get user profile (V2).
    • In the User (UPN) box, select the dynamic content Responders' Email. This will look up the responder's name by the email address on the form.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (13)

  6. Add a step to your flow:

    • Search for "excel" and select Excel Online (Business).
    • Select Add a row into a table.
    • Select the Location and Document Library.
    • Select the folder icon and browse to the Excel workbook you created earlier.
    • Select the Table.
    • In each column in the table, select the corresponding dynamic content.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (14)

  7. Select the flow name at the top of the Power Automate canvas and change it as you like.

  8. Save and test your flow.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (15)

You can use a template to add an approval step before a form response is added to the Excel table.

Get an attachment from a form and send it in an email

In this example, we'll create another flow from blank. We'll use the flow to create a share link for a file that's uploaded on our summer vacation form, and then email the link.

Common ways to use Microsoft Forms in Power Automate - Power Automate (16)

Select your form

  1. In Power Automate, create an automated cloud flow from blank. Select the Microsoft Forms "When a new response is submitted" trigger.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (17)

  2. In the first step in the flow, "When a new response is submitted," select your form in the Form Id box.

  3. Add a step to your flow:

    • Search for "forms" and select Microsoft Forms.
    • Select Get response details.
    • Select your form in the Form Id box.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (18)

Use a JSON schema to find the uploaded file

  1. Save and test your flow. Be sure to upload a file to your form.

    We're not done yet! This step allows Power Automate to use the test run to generate a sample JSON schema for the uploaded file.

  2. On your flow's information page, under 28-day run history, select the test run.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (19)

  3. Expand the "Get response details" step and copy the contents of the file upload output.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (20)

  4. In the upper-right corner of the window, select the Edit pencil icon to open the flow canvas.

  5. Add a step to your flow:

    • Search for "parse" and select Parse JSON.

    • In the Content box, select the dynamic content that corresponds to the file upload option on the form.

      Common ways to use Microsoft Forms in Power Automate - Power Automate (21)

  6. Select Generate from sample.

  7. Under Insert a sample JSON payload, select the box and paste the file upload output you copied earlier, and then select Done.

    Common ways to use Microsoft Forms in Power Automate - Power Automate (22)

    The "Parse JSON" action should look something like this after you select Done:

    Common ways to use Microsoft Forms in Power Automate - Power Automate (23)

  1. Add a step to your flow:

    • Search for "create share link" and select the OneDrive for Business action Create share link.

    • Select the File box. The dynamic content panel opens. Select the Expression tab.

    • Type the following expression: first(body('Parse_JSON'))?['id']

    • Select the Link type and Link scope.

    • Select OK.

      Common ways to use Microsoft Forms in Power Automate - Power Automate (24)

  2. Add a step to your flow:

    • Search for "send email" and select the Office 365 Outlook action Send an email (V2).

    • Enter the recipients, subject, and body of the email. Select dynamic content to include details from the form response in your email.

      Common ways to use Microsoft Forms in Power Automate - Power Automate (25)

Convert the URL to a clickable link

To make the URL of the shared file a clickable link in the email, you'll need to use the HTML editor and an anchor tag:

  1. In the email body toolbar, select the HTML view icon (</>).

  2. Enclose the dynamic content Web URL and name in an anchor tag to turn them into a link and the link title, respectively.

In our example, we entered the following HTML in the email body, where text in curly brackets indicates the dynamic content:

<a href="{WebURL}">{name}</a>

Here's our example:

Common ways to use Microsoft Forms in Power Automate - Power Automate (26)

You can combine getting an attachment from a form and creating an approval flow.

Top Articles
Latest Posts
Article information

Author: Tish Haag

Last Updated: 29/05/2023

Views: 6479

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Tish Haag

Birthday: 1999-11-18

Address: 30256 Tara Expressway, Kutchburgh, VT 92892-0078

Phone: +4215847628708

Job: Internal Consulting Engineer

Hobby: Roller skating, Roller skating, Kayaking, Flying, Graffiti, Ghost hunting, scrapbook

Introduction: My name is Tish Haag, I am a excited, delightful, curious, beautiful, agreeable, enchanting, fancy person who loves writing and wants to share my knowledge and understanding with you.