cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TDorge
Frequent Visitor

Insert Image into header section of a Word Template not working

Inserting an image into a Word template using the "Populate a Microsoft Word template" action works fine if the image is located inside the content section of the Word template.

If the image is located inside the header section of the Word template it is NOT working. 

It has been suggested as an idea (https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Allow-to-insert-an-image-into-the-header-of...) but it has to be a bug since text-controls within the header are replaced fine during the merge process.

Steps to reproduce:
Word-template

TDorge_0-1593684756049.png

Flow

TDorge_3-1593685369624.png

 

 

ResultingWordFile.docx

TDorge_2-1593685044726.png

 

 

 

 

5 REPLIES 5
JohnAageAnderse
Memorable Member
Memorable Member

Hello @TDorge 

Have you tried the process using an actual Word template (dotx) instead of a Word document (docx)?

I am curious to whether or not that has any impact 🙂

Kind regards, John

Hi John,

I created a .dotx file however it is not possible to select other file formats than .docx from the action "Populate a Microsoft Word template".

 

Best regards

TDorge

Hello @TDorge 

I just tried it myself - placed the path to a Word template (dotx) file in a variable. Added it to the Populate a Word template ... and it did not recognize the content containers in the document - gave me the dynamicFileSchema instead, which apparently noone knows about 😄

Renamed the Word template to docx, so it was still a template inside, added it to the step by navigating to the file. Now shows my two content containers - added the image object and ran the flow. Word file created, but failed to open in Word.

Renamed the Word file to dotx, open in Word, saw my image, but only in the body, not in the header.

Suggest you to post this as in the idea forum!

Kind regards, John

Rens_
Frequent Visitor

Hi TDorge


Did you ever manage to resolve this?


Thanks.

TDorge
Frequent Visitor

Hello Rens_,

 

I'm afraid not.

We found a solution where we didn't have to change the header image.

Best regards,

TDorge

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,987)