top of page

Send Multiple Attachments in Single Email added from Microsoft Forms using Microsoft Flow.

  • Writer: K DINESH
    K DINESH
  • Aug 16, 2020
  • 2 min read

Recently in forms a new feature has been introduced. Now users can able to add Attachments in Microsoft Forms.


Scenario :-

When a new response is submitted in Forms using the Flow we are sending an email with that attachments.


Mentioned below are the Steps :-


Step 1 :- Here is my sample Form.


ree

Step 2:-

Login to the Flow with your school or work account and create flow like this.

When a new response is Submitted -> Get response Details


ree

Step 3 :-

Click on New Step and add Compose. Add the file Upload as input to the Compose.


ree

Now try to run the flow and copy the output of the compose and paste it Notepad for your reference. [You can remove the compose once you copied the code]


Step 4:-

Add the Parse JSON action card and in the Content add the File upload from dynamic content click on Generate from Sample and past the code and click on done. It will generate the JSON Schema automatically.


ree

Step 5:-

Now initialize a variable and set the type to Array.


ree

Step 6 :-

Add Apply To Each and add the body from dynamic content.Now search for Get File Content Using Path (One drive For Business Connector) choose the Respective folder and choose any file name.

ree

Then remove that file name in the Get file content using Path and add Name from the dynamic content . Whenever a new Form is Created by default a folder will be created in the One drive. [Nan Form is Microsoft Form name].


Step 7:-

Add Append to Array Variable and set the value like below. Name should be enclosed in Double quotes ("").


body('Get_file_content_using_path').$content

[if this is not working you can try the below option]

body('Get_file_content_using_path')['$content']


ree

Step 8:-

Get out of the Loop click on New Step and add Send an Email. In the Attachments section click on Switch to input array and add the variable name from the dynamic content.


ree

Step 9:-

Now you will see the output like below. You can add multiple attachments in Forms and you will get the multiple attachments in the Email.


ree

Happy Learning 👍

Comments


Post: Blog2_Post

Thanks for submitting!

  • Facebook
  • Twitter
  • Instagram

@2022 copyrights reserved by PowerPlatformLearner

bottom of page