web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trying to conditionall...
Power Automate
Answered

Trying to conditionally build a Word document

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm trying to build a contract dynamically, either hiding or revealing certain clauses in the Word template based on the values from the form.  For example, we have a template for a Master Agreement.  We also have a template for Addendum A that can be added to the end of the Master Agreement.  If the person filling out the form indicates they need a Master Agreement with Addendum A, how do we produce one combined Word document?

 

I have been able to take input from a MS Form and build a Word document from a template with results from the form.  We're using the Plumsail connector for that. 

 

One idea is to try to combine multiple Word templates, but I'm not sure Flow is capable of appending/combining Word documents (I'm know you can combine PDF, but we need it in Word).

 

Another idea is to have all the content in the Word template, and then hide/remove blocks or sections of the template depending on the results of the form. But I can't figure out how to do that.

 

Thanks for any suggestions!

Categories:
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Thanks for feedback.

     

    Per my certain knowledge, it is currently not possible to merge documents into a single file using Flow.

     

    Two connectors, Plumsail and Muhimbi have the ability to merge PDF files but not Word documents.

     

    Please consider submitting a request on Flow Ideas Forum for this feature:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    Best regards,

    Mabel

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-yamao-msft , thanks for the reply.  

     

    Actually, I just found a solution.  Plumsail has released a new action called Merge DOCX!   Good timing.  It looks like they just rolled it out: https://community.plumsail.com/t/merge-docx-action-missing-from-flow/7567. 

     

    The action doesn't appear automatically, so I had to create a custom connector as outlined here: https://plumsail.com/docs/documents/v1.x/flow/create-custom-connector.html?highlight=custom%20connector

     

    It even allows the ability to merge multiple Word docs into one, which is exactly what we were looking for.

     

  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Thanks for updating and sharing.

    The docs you shared with us are really helpful.

     

    Best regards,

    Mabel

     

  • Jay-Encodian Profile Picture
    2,920 on at

    Hi,

    Encodian have just released a new action which enables multiple word documents to be combined into a single word document. See below

    9a.png

    Ref: https://support.encodian.com/hc/en-gb/articles/360023972213-Merge-document-array-to-Word

    May help?

    Thanks J

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard