cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

7 REPLIES 7
Dual Super User II
Dual Super User II

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. 

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (7,009)