Skip to main content

Notifications

Power Apps - Building Power Apps
Suggested answer

Adding image to MS Word with Power Automate

(2) ShareShare
ReportReport
Posted on by 46

After viewing Shane Youngs video on adding image to OneDrive, I wanted to add this image to MS word with Flow, yet I keep on getting Invalid Template error.

 

I create file in OneDrive taking into account baseto64Binary expression and JSON coding within the app.

 

File gets created successfully on OneDrive but selecting this file to import into word as an image does not work...

Categories:
  • Suggested answer
    Ravindra Jadhav Profile Picture
    Ravindra Jadhav 240 on at
    Adding image to MS Word with Power Automate
    Use Premium Action you can easily added it. Populate Word Template 
     
     
    Please Closed the Question, Mark it Solved 
     
    If my answer helped resolve your issue, please consider marking it as solved to assist others facing the same problem. Additionally, giving it a like would be greatly appreciated and motivates us to keep helping
     
    Thank You
    Ravindra Jadhav
     
     
     
  • AlexEncodian Profile Picture
    AlexEncodian 4,302 on at
    Adding image to MS Word with Power Automate
    You can add images to Word headers and footers using Encodian's Update Word - Add Headers and Footers action. 
  • Loris_Chab Profile Picture
    Loris_Chab 7 on at
    Re: Adding image to MS Word with Power Automate

    Have you ever try to do the exact same thing but with the Image control in the footer or header ?
    It doesn't work for me, while it work fine when the Image control is out of footer or header ..

    Thanks

  • Loris_Chab Profile Picture
    Loris_Chab 7 on at
    Re: Adding image to MS Word with Power Automate

    Try it like this :
    Then I tried to wrap it with 
    {
    "$content-type":"image/jpeg",
    "$content":"base64(outputs('Get_file_content_using_path')?['body'])"
    }

  • hongkong Profile Picture
    hongkong 232 on at
    Re: Adding image to MS Word with Power Automate

     My flow is using "Get file content using path" action to get the png file. However when I am trying to populate a word document with body('Get_file_content_using_path')  it is throwing error. 
    The image is not of type PNG or JPG. Please provide an image of type PNG or JPG.

     

    Then I tried to wrap it with 
    {
    "$content-type":"image/jpeg",
    "$content":"body('Get_file_content_using_path')"
    }

    The error become "The image is not a valid base64 encoded string."

  • iAM_BA Profile Picture
    iAM_BA 143 on at
    Re: Adding image to MS Word with Power Automate

    HI @Andries1 

     

    You may try with following link. 
    It is adding Image to Word by using Power automate flow. 
    https://www.youtube.com/watch?v=f3cPTtRvUMw


     


    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Re: Adding image to MS Word with Power Automate

    Thanks, I was really stuck on this because I kept trying to entre file metadata rather than the file content.

  • esjimenezp Profile Picture
    esjimenezp 485 on at
    Re: Adding image to MS Word with Power Automate

    Hi @camaraneni this video can help you PowerApps : Saving Image in SharePoint List and Displaying them back to PowerApps 👋

  • camaraneni Profile Picture
    camaraneni 14 on at
    Re: Adding image to MS Word with Power Automate

    Can you please help me understand how to get Images from Sharepoint List through Power Automate and populate them in Word Documents. My List has a Thumbnail column and images are stored there. Thanks in advance.

  • v-siky-msft Profile Picture
    v-siky-msft on at
    Re: Adding image to MS Word with Power Automate

    @Andries1 

    Please try the following steps.

    1. Add Image control to template

    Snipaste_2020-01-23_14-15-01.png

    2. Save the image to SharePoint (you have done)

    3. Use 'Get file content' action in flow to get the Image encoded bit stream.

    4. Add the output of the 'Get File Content' into the Word Template action in flow

    5. this should work, below is screenshot of my template action in flowSnipaste_2020-01-23_14-16-37.pngSnipaste_2020-01-23_14-17-03.png

    Sik

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard