cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Denis1
Level: Powered On

Populate a microsoft word template control - header and footer

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

 

6 REPLIES 6
Denis1
Level: Powered On

Re: Populate a microsoft word template control - header and footer

A small update:

I tried to map the controls.

They are showing in the flow panel, and the flow runs apparently correctly, but the generated document doesn't show the new values.

 

In other words, once the controls are mapped, the update doesn't work and the flow is shown to work successfully.

 

 

Community Support Team
Community Support Team

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/hig...

 

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.

Denis1
Level: Powered On

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:

 

 

HeaderBodyFooter.pngWord document with added plaintext controlsHeaderBodyFooterFlow.pngFlow showing the 3 controlsHeaderBodyFooterFlowConfirmation.pngTest feedback : successfullHeaderBodyFooterResult.pngResult

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

Community Support Team
Community Support Team

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

Cuong1977
Level: Powered On

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. 

BenFetters
Level 8

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

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fourthImage

Australia Summit

Travel to Melbourne and network with thousands of peers!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 212 members 3,758 guests
Please welcome our newest community members: