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...
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
Try it like this :
Then I tried to wrap it with
{
"$content-type":"image/jpeg",
"$content":"base64(outputs('Get_file_content_using_path')?['body'])"
}
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."
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.
Thanks, I was really stuck on this because I kept trying to entre file metadata rather than the file content.
Hi @camaraneni this video can help you PowerApps : Saving Image in SharePoint List and Displaying them back to PowerApps 👋
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.
Please try the following steps.
1. Add Image control to template
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 flow
Sik