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

11 REPLIES 11

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,274)