Skip to main content

Notifications

Community site session details

Community site session details

Session Id : GHd0KGvNSjZb9rEZGkAeJN
Power Automate - Building Flows
Unanswered

Insert Image into header section of a Word Template not working

Like (1) ShareShare
ReportReport
Posted on 2 Jul 2020 10:28:18 by 8

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-Word-Document-in-MS/idi-p/432221) 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

 

 

 

 

  • jg4dmin Profile Picture
    on 05 Feb 2024 at 15:55:36
    Re: Insert Image into header section of a Word Template not working

    I am still using old fashioned VBA scripts to insert images to header/footer section of docx-files, but I also still wonder if I could somehow do that with Power Automate. What is your solution, @Anonymous ?

  • TDorge Profile Picture
    8 on 05 Dec 2022 at 09:00:48
    Re: Insert Image into header section of a Word Template not working

    Not really. We found a solution where we didn't have to insert an image into the header.

  • Community Power Platform Member Profile Picture
    on 02 Dec 2022 at 19:13:54
    Re: Insert Image into header section of a Word Template not working

    Did you ever find a solution? I am stuck at this point as well.

  • jg4dmin Profile Picture
    on 15 Aug 2022 at 20:02:34
    Re: Insert Image into header section of a Word Template not working

    Same problem here. Also struggling to insert an image to the header / footer section of a word document using Power Automate. Insertion into the body works fine.

     

    Is this not possible in general, or how does the image have to be encoded to make this work?

     

    jg4dmin_0-1660593650371.png

     

    Or is it maybe possible run VBA/Macros in a Power Automate cloud flow (because it is possible to place images in the header section using VBA script)?

  • TDorge Profile Picture
    8 on 24 Nov 2021 at 07:50:25
    Re: Insert Image into header section of a Word Template not working

    Hello Rens_,

     

    I'm afraid not.

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

    Best regards,

    TDorge

  • Rens_ Profile Picture
    20 on 23 Nov 2021 at 15:54:45
    Re: Insert Image into header section of a Word Template not working

    Hi TDorge


    Did you ever manage to resolve this?


    Thanks.

  • JohnAageAnderse Profile Picture
    1,986 on 03 Aug 2020 at 10:41:18
    Re: Insert Image into header section of a Word Template not working

    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

  • TDorge Profile Picture
    8 on 03 Aug 2020 at 08:11:59
    Re: Insert Image into header section of a Word Template not working

    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

  • JohnAageAnderse Profile Picture
    1,986 on 31 Jul 2020 at 06:47:32
    Re: Insert Image into header section of a Word Template not working

    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

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,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard