cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
middo
New Member

Creating a word document using form option output, word template document and contents from document library

Hello 

 

we are looking to stream line creation of a number of documents using power automate, forms and word.

 

I hope to devise a form, word template with information already entered and plain text content controls. 

 

Is it possible to copy the contents of multiple word documents within a flow on the response of relating form option field being set as yes? i.e.

 

question 1

yes 

no

 

question 2 

yes 

no

 

if the person completing the form answers yes to question 1 I need to get the contents of a specific word document and add it to the word document template being created. This also applies to question 2 with a different document.

 

is this possible?

 

or would it be easier to delete the specific information from the word template if the user answers no the the above questions? and is this possible?

 

Hope you can help and appreciate any assistance. 

1 REPLY 1
RaashiSen
Community Support
Community Support

Hello @middo ,

 

To fairly understand your question-

Lets say you have a Form with 2 questions

you create a flow with trigger - when a response is submitted

next, use 'get response details' action from Forms(if using MS Forms)

From here, you can do two ways-

1. create a condition, like if ques 1 equals yes or ques 2 equals yes

then get content, populate the word template, and do the rest

 

else, have 2 separate conditions

condition 1- if ques 1 equals yes-
if yes: doc 1, if no: doc 2

add new step with next condition, saying if ques 2 equals yes-

if yes: doc 3, if no: doc 4
so on...

Its possible, but going to be lengthy
you can also use Parallel branch for running both the conditions together
make sure the word template is separate, otherwise this might lock the file for editing

 

To your second case, I believe you cannot remove something from word template, its for editing, not omitting.

 

Let us know how it goes 🙂

 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,836)