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

Notifications

Announcements

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 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard