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 / Use Word template to r...
Power Automate
Suggested Answer

Use Word template to replace, include and exclude sections

(0) ShareShare
ReportReport
Posted on by 61

Hi all, 

I am hoping you can help me as I feel this request is not too far out of the box. 

I have a Word template that is a quote. Based on variables stored in a table, different sections of the quote should;

  1. Be replaced (e.g. Client Name would be a placeholder/bookmark that would be replaced with the client name)
  2. Be removed (e.g. I have multiple sections that have predefined text, and depending on the options the client is taking up, the sections that are not relevant should be removed)

I can see how 1 can be done but I cannot see how 2 can be done without going to 3rd party apps. 

Does anyone know of a way to do this with standard or premium connectors?

 

Let me know if the context is not clear enough and I will expand but hoping this is enough to get an idea on what I am looking to acheive. 

 

Thanks, 

 
Categories:
I have the same question (0)
  • narayan225 Profile Picture
    2,547 Moderator on at
    This is possible with document generation toolkits like docentic or nintex. However, they are limited in Power Automate though.
     
    You can instead use a reverse logic or multiple templates.
    Here are the some ideas:
    1. instead of removing a section, create an empty content control in the word document and then based on the inputs, you can either leave it blank or populate the content.
    2. Create multiple templates for multiple conditions and fill them up based on the input condition.
    3. If your end goal is to create PDF, you can use HTML compose to create the content for your pdf. With HTML you can create the content right within Power Automate and use expressions and other conditional logic to create the text exactly what you want.
    Hope these ideas help.
    Cheers!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard