web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Adding image to MS Wor...
Power Apps
Unanswered

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:
I have the same question (0)
  • v-siky-msft Profile Picture
    on at

    @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

  • camaraneni Profile Picture
    14 on at

    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.

  • esjimenezp Profile Picture
    485 on at

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

  • Community Power Platform Member Profile Picture
    on at

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

  • iAM_BA Profile Picture
    145 on at

    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.

  • hongkong Profile Picture
    277 on at

     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."

  • Loris_Chab Profile Picture
    17 on at

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

  • Loris_Chab Profile Picture
    17 on at

    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

  • Suggested answer
    Ravindra Jadhav Profile Picture
    342 Moderator on at
    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
     
     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard