Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 7w2ed4AvYY6XHOhjv3ZR8L
Power Automate - Building Flows
Unanswered

Populate a microsoft word template control - header and footer

Like (1) ShareShare
ReportReport
Posted on 4 Feb 2019 08:03:17 by 25

Hello all, 

 

I've a small issue with the "Populate a microsoft word template" action to populate some controls in a word template: 

when loading the word template, it now lists all the controls. When I test the flow, it runs without error. 

But when I check the word document, the controls that are located in the header and footer of the document are left blank. 

 

Any chance this could be solved? 

 

 

Best, 

 

Denis

 

  • lucanisi Profile Picture
    2 on 16 May 2024 at 09:37:15
    Re: Populate a microsoft word template control - header and footer

    Hello!
    We are currently facing the same issue: we need to populate both header and footer and can't find any way to do this efficiently. Since this thread is now 5 years old, we'd like to know if you have plans on fixing this?

    Thank you

  • Community Power Platform Member Profile Picture
    on 30 Nov 2022 at 17:21:06
    Re: Populate a microsoft word template control - header and footer

    Hello everyone!

    Ah, guys, this is one of the limitations and problems i encountered when using the Word Online connector. I prefer to use the Plumsail Documents connector because of the powerful templating engine and simple syntax. There will be no problems. No matter where the controls are located, if you use this connector. I recommend you to read the article to get familiar with Plumsail Documents. There is a free 30-day trial, and no credit card is required, so you will have enough time to try all features and decide if it's worth it.

  • JoeMass Profile Picture
    2 on 17 Mar 2021 at 18:45:18
    Re: Populate a microsoft word template control - header and footer

    If I knew all of these small niggly issues - that can really put my process to a COMPLETE HALT, I am pretty sure that I would not have started down this path. A simple find/replace or mail merge would fix this, but I guess that is just too hard to build into process automate...   

  • aleo Profile Picture
    29 on 08 Feb 2021 at 02:19:32
    Re: Populate a microsoft word template control - header and footer

    still not fixed 😞

  • pbernardes Profile Picture
    50 on 14 Dec 2020 at 21:35:33
    Re: Populate a microsoft word template control - header and footer

    One year and a half later, this issue has not been fixed yet!!

  • BenFetters Profile Picture
    on 16 May 2019 at 19:06:05
    Re: Populate a microsoft word template control - header and footer

    Hi,

     

    I was wondering if this issue has been fixed yet?

     

    Another workaround that I have found is to bookmark the field in the body, and then for the header, you have to add a Ref field that references the bookmark. This seems to work but is a little tedious at times. Thank you for looking into this! 

     

    Kind regards,

    Ben Fetters

  • Cuong1977 Profile Picture
    14 on 18 Mar 2019 at 12:26:46
    Re: Populate a microsoft word template control - header and footer

    You can populate a text in the BODY and then use STYLEREF to populate the header and footers.

     

    When you open the WORD, then the header and footer will update automatically and hence refer to the value, which has the STYLE referred to.  

     

    Its just a work around. 

  • v-yuazh-msft Profile Picture
    on 06 Feb 2019 at 08:51:53
    Re: Populate a microsoft word template control - header and footer

    Hi @Denis1,

     

    I have made a test on my side and the issue is confirmed on my side.

    I afraid that the plain text control is not supported in the header and footer in microsoft word in flow currently.

    I would help confirm it with my product team and would reply here once I get the respond.

     

    Best regards,

    Alice

  • Denis1 Profile Picture
    25 on 06 Feb 2019 at 08:01:59
    Re: Populate a microsoft word template control - header and footer

    HEllo @v-yuazh-msft,

     

    I'm 100% sure that the control is plain text. I have no issue populating all the others that are located in the body of the document.

    However, it is not possible to populate the ones located in the header and the footer.

     

    I also did tests starting from a new a blanck .docx document inserting 3 plain text content controls:

    1 in the header

    1 in the body

    1 in the footer

     

    See the print screens:

     

     

    Word document with added plaintext controlsWord document with added plaintext controlsFlow showing the 3 controlsFlow showing the 3 controlsTest feedback : successfullTest feedback : successfullResultResult

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    As you can see, the content is not reaching the plan text content controls in the header and footers eventhough the test returns as successful.

  • v-yuazh-msft Profile Picture
    on 06 Feb 2019 at 01:45:00
    Re: Populate a microsoft word template control - header and footer

    Hi @Denis1,

     

    Please make sure your file has Plain Text content controls like this:

    1.PNG

    You could refer to the same issue as yours in the following post:

    https://powerusers.microsoft.com/t5/Building-Flows/Error-using-populate-word-template/m-p/210963/highlight/false#M22241

     

    And you could learn how to add content controls refer to link below:

    https://support.office.com/en-us/article/about-content-controls-283b1e29-0b77-4781-b236-2d02c1cce1c2

     

     

    Best regards,

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard