cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Converting Microsoft Form response to Word Doc or PDF

Hello. I'm a Microsoft 365 user. I'm seeking help in converting responses from a Microsoft Form to a Word or PDF document, where the data fields are mapped to tags. This process is currently being done from a Mail Merge (manually) from an Excel doc, and I'd like help setting up a Flow to execute the process. I've got one Flow which brings Form data into a Sharepoint List. Is there anyway from either Forms (direclty) or from the Sharepoint List that I can export the data fields into a previously mapped Word doc?  I have limited programming experience, so nothing too complex. Also, no paid services like Plumsail. 

 

This seems like something that should be fairly easy to do but I have already spent a lot of time on it. I have found several OLD articles referring to solutions that could be done older versions of Sharepoint, but they don't seem to match current versions.

 

Thanks in advance.

 

Nikki

31 REPLIES 31
v-xida-msft
Community Support
Community Support

Hi @Anonymous,

 

Could you please share a screenshot of your flow's configuration?

Further, do you want to convert the Response data into a Word doc?

 

I have made a test on my side and please take a try with the following workaround:

  • Add a "When a new response is submitted" trigger.
  • Add a "Apply to each", input parameter set to output of the trigger.
  • Within "Apply to each", add a "Get Response details" action, specify Form Id, Response Id field set to Response Id dynamic content of the trigger.

         Add a "Create HTML table" action, From set to output of the trigger. Include headers set to Yes and Columns set to Custom. Within Header-Value map entry, type these Response Data dynamic contents that you want to show up in Word doc. On my side, I type three entries within it as below:7.JPG

        Add a "Create file" action of OneDrive for Business connector. File Name field set to Response.doc, File Content field set to output of "Create HTML table" action.

 

Note: I store the Word doc in my OneDrive for Business folder.

 

Image reference:8.JPG

 

9.JPG

The flow works successfully as below:10.JPG

The created Word doc opens well as below:11.JPG

 

 

 

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Kris,

 

Thank you for your thorough reply. Your workflow is helpful and gives me hope. I am wondering what I can do to change the formatting of the output.  Rather than a table, this document needs to be in a readable format for a layperson. I was hoping to input tags into a template document to populate fields similar to a mail merge.  This flow will be used eventually to populate job applications to be read by a hiring committee.  I would love to put it on company letterhead. For example, the Word doc would be modeled as below:

 

First Name:  [first name field response data]

Last Name:  [last name field response data]

Address:  [address field response data]

 

etc.

 

Any ideas on how to modify the solution you proposed?  

 

Thank you immensely for your assistance.

 

Nikki

Anonymous
Not applicable

@v-xida-msft forgot to mention you in my reply.  See above.

I'm looking for similar functionality.  Did you ever figure out a way to do this?

I believe the Plumsail Documents Connector (not free) offers this capability.  With this connector, you can create various types of documents from within Flow.  

 

Please note that I am not endorsing this product - just saying that it is an option.

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
Anonymous
Not applicable

@Anonymous: Have you found a solution for it? I am looking for a similar option

First off I want to say I am no pro at this and I have just been teaching myself. I was in a similar situation and needed to create a word document with the data that was inputed. Sorry if I use the wrong lingo or am not super precise-- I am not a tech person but this how I did it. The document isn't super pretty but it works for me. 

 

How my form is set up

This is how my form starts-When a response from Microsoft Flow is submitted then my flow runs. 

Note if your information is from Forms remember you have to make sure it is in the "apply to each" box  and you have the get response details set up. 

How mine is set up but yours may be different if not from FormsHow mine is set up but yours may be different if not from Forms

The Solution:

This solution doesn't meta-tag (hopefully thats the right word!) it but it just puts the information in a word Document.

I am assume we all know how to build the basic flow so I am skipping over the beginning part. 

 

 

1. Add an action and clicked  - then clicked Create File for OneDrive

Add ActionAdd Action

2. Inputed Folder Path 

 Folder PathFolder Path

 

 

 

 

 

 

 

 

3.For My File Name I used the Dynamic Data 

Used Dynamic Data for FileNameUsed Dynamic Data for FileName

4. File Content I inputed some text and then added Dynamic Data

Used Text and Dynamic Data for FileUsed Text and Dynamic Data for File

5. Ran my flow and it created a document in the folder path as specified above. 

The Document looks like this:

What it looks like  in the document. The information with CAPS is the dynamic data-- took out since personal dataWhat it looks like in the document. The information with CAPS is the dynamic data-- took out since personal data

 

 

Hope that helps-- again I am not a tech person but just explaining what worked for me! 

Thanks and have a great day! 

Samantha 

 

 

mhills91
Frequent Visitor

@Anonymous- try adding .doc in the 'File Name' on your create file operation

Hi!

 

Please read this article. It describes how to generate DOCX from Microsoft Forms submission and then convert it to PDF.

Anonymous
Not applicable

You figure out how to get your formatting you were looking for without paying for ANOTHER connection?

Encodian provide a 'Free' SKU which provides three actions which cover this:

These posts provide good examplea of converting Microsoft Form data to a document:

More details on the actions below:

Cheers J

Hello all,

 

I was wondering if anyone has come up with a way to do this with only O365 and no outside connectors.

 

Take information from MS Form and populate into Word/PDF document?

I am looking for such a way as well, just O365, no extra connectors.

 

Currently I've created flows that use Muhimbi to create a HTML file, then convert it to PDF  (which on its own works fine).

However, Muhimbi only allows 50 conversions on  the free plan, which is not much, considering all the testing you need to do before releasing a flow to my coworkers.

CFernandes
Most Valuable Professional
Most Valuable Professional

To Convert HTML to PDF -see  https://clavinfernandes.wordpress.com/2019/01/29/convert-response-from-microsoft-form-to-pdf/

 

 image-22

 

You can also preserve layout of the Forms by adding some HTML and CSS magic, you can have a look at https://clavinfernandes.wordpress.com/2020/08/04/convert-microsoft-forms-responses-to-pdf-using-powe...

 

If you want to Convert Form responses to Word, then see: https://kamdaryash.wordpress.com/2020/04/27/power-automate-solution-to-convert-microsoft-forms-to-wo... 

Just wanted to ask if somebody here found a solution for this?

Getting MS forms responses into a new Word Document (or Excel File) ,without any extra connectors, just O365.

 

@hendrikhoe @Anonymous I think I found a way to convert MS Forms responses to a Word doc and then convert those into a PDF.

I use the Word Online (Business) connector for that. 

 

First, this is the entire flow: 

Mikolaj__0-1597753925161.png

It starts with the regular acquiring of MS forms resonse details.

Then, the magic begins: I use the flow element "populate a MS Word template".

 

This is a simple word doc containing a table, which has so-called "plain text content controll" fields that work as a space to insert data into. You can find them by enabling the developer features of MS Word and adding them here (sorry for the German text in the ribbon, you'll surely figure out where to find it).

Mikolaj__1-1597754217611.png

My table looks like this:

Mikolaj__3-1597754395426.png

This one has the categories on the left (in this case, just the first and last name) and the corresponding field on the right.

Now, I suggest you enter design mode by clicking here:

Mikolaj__5-1597754496971.png

My table looks like this now:

Mikolaj__6-1597754572914.png

To get there, I clicked on the field right next to "Name, Vorname" and clicked on the plain text conent control, which I showed you earlier. 

Now, select the new content control field and go to its properties by clicking here (should be called "properties" for you):

Mikolaj__7-1597754674829.png

Now, change the title and the tag. You have to do this in order for MS Power Automate to desplay these names, instead of generic numeral texts which you have no idea what field they corresponds to. 

In my case, I set the properties like this:

Mikolaj__8-1597754787234.png

You can do this multiple times with different information gathered in the MS Forms response, like date of birth, department, position, etc.

 

Now that you have set up your word doc (which is handy as you can still change the format / design of it while keeping the content control working), you need to let Power Automate fill those fields, create a word doc, save it somewhere and maybe convert it to a PDF in the end. I'll go into detail on how to do that now.

Mikolaj__9-1597755051860.png

First, you choose the action "Populate a MS word template" and and select the word doc's location

You see "Name, Vorname": this is the content control field we created in the Word doc. I inserted the corresponding dynamic content from the MS Forms response. 

Then I added a create file in MS Sharepoint action. As file content I selected the processed word file content.

At this stage of the process, MS Power Automate can already create the word file in a desired location. As file name I chose dynamic content as well, for the possibility to have multiple form responses saved individually.

Next, if you desire, you can convert the file into a PDF by using the corresponding Word Online action. Be sure to add another create file action afterwards, so it actually saves a PDF in the desired location.

 

If you wish to only keep the PDF, you might want to try and add a "delete file" action. 

 

I think this should be an answer to you, @hendrikhoe and the OP, @Anonymous .

If you have further questions you can ask me.

 

You / a mod could maybe select my response as a solution to the thread, if this helps. 

 

 

Anonymous
Not applicable

This looks good but the Populate into Word Template is a premium feature. Anyone else have a "free/included" method? I could use this myself.

@Anonymous I am sorry but I doubt that will ever be an option. As Word isn't free itself I don't think MS would ever add it as a PA connector for free; this is where the "cheaping out" doesn't get you anywhere, I suppose. 

 

What you can try is using Muhumbi's convert HTML to PDF connector and just run your Muhimbi account on the free plan which allows 50 conversions per month. Though if you were able to find this post here, you were probably also able to test that one out and decided it was still not good enough of a solution.

 

I suggest you change your workflow or something at this point then, as you will not find a better solution. I spent almost half a year perfecting our workflow; I think I know about the options.  

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (1,278)