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

How to populate a word document with images?

I am creating a powerapp application form that allows  users to take pictures. I want to however populate the images in the form of a word document to then send to the user.


How can i do so? So far, i can only populate a word document with text. Any help is appreciated.


Thanks

12 REPLIES 12

Hey @jaiyeko 

 

Once yo uhave the binary content of the image in Flow, you can use the below format to populate that image in a word template with a image content type field in the template.ee33.png

You can refer to this blog on passing image files from PowerApps to flow using the JSON function. https://www.appliedis.com/newly-released-json-function-for-powerapps/

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Thanks

Hi there

 

Thank you for your very helpful comment.

 

I want to allow users to take multiple photos and then populate as many photos they take into a word document. Is this possible? Can i use your method for this?

 

@yashag2255 

Hey @jaiyeko 

 

You would have to create those many number of fields in the Word Template first. And then pass all the images from Powerapps and loop through them to create individual files (and contentbytes as we have in the variable) now put all of them individually in the word template action. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Hi @yashag2255 ,

 

Is there a way to acheive this using the array function and repeating section control?

Hey @sh020ho 

 

Support for repeating control has been recently added and you can check that here: https://docs.microsoft.com/en-us/connectors/wordonlinebusiness/#createfileitem

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

@yashag2255 I was wondering if you could help me achieve this. I currently have setup a repeating section document but have not been able to pass images.

I have an unique Audit id for each file that is in SP doc libary and and images need to be pulled for that particular id , loaded into word doc and then saved/sent as a pdf report. 

tcole
Frequent Visitor

Can Someone 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.

In my case I have trying to import an image received in an e-mail. I found that the Set variable approach here no longer works; Flow will not make the object variable available for the image field in the Populate a MSWord Template action. The same code in a Compose works, however. MS certainly keeps you guessing!

MusicMan_0-1643735151860.png

 

I still do not have the image appearing correctly in the Doc - not sure why. But at least this gets the doc made so I can troubleshoot further.

Hi There MusicMan,

I was wondering if you were able to add the images via compose in Power Automate as you mentioned on 2-1-22?
We are just trying this now. Also complicated as we are trying to ad varying number of images to different sections based on a correlating ID. Any help would be appreciated!

Yes, it works with attachments, but not with images embedded in the e-mail message. I have not had time to crack that nut, yet. I'm sure it would require another Compose with some JSON work.

Hi Walter_Wego, 

 

I am trying to achieve the same as you. Could you did it? Thanks!

 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (3,755)