cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sub
Level: Powered On

Inserting image into word template to generate a document

Is it possible to create a document with image captured from Powerapps using Flow and Powerapps (no 3rd party apps)

1 ACCEPTED SOLUTION

Accepted Solutions
Sub
Level: Powered On

Re: Inserting image into word template to generate a document

12 REPLIES 12
Community Support Team
Community Support Team

Re: Inserting image into word template to generate a document

Hi @Sub ,

 

Do you want to get the image from PowerApps, then create a document via Flow and insert the image into this document?

Could you provide more details about your needs?

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Sub
Level: Powered On

Re: Inserting image into word template to generate a document

@v-bacao-msft ,

Thats correct,

I want to collect signatures using powerapps and then generate a offical document with the signature in the document along with other information collected via powerapps.

 

Currently I'm using powerapps, Sharepoint, workflows and flow to generate the document but this does not allow me to add images. I've managed to find that Word Online connector can be used to generate documents from a template document using text content control but i was wondering if i can do the same with images that is passed on.

 

Regards,

Sub

Sub
Level: Powered On

Re: Inserting image into word template to generate a document

sajarac
Level 8

Re: Inserting image into word template to generate a document

Hi there,

 

I have been playing with this for a long time, but is very confusing.

 

Would you mind to explain a little bit for a new guy?

 

What I have so far is:

 

I have created an app where I collect the data and using a flow I can populate a word template and pass the data. But I am having difficulties trying to add the pictures collected and saved in my share point folder associated with the record inserted in the same word document.

 

 

Could you plese point me in the right direction?

 

Thanks in advance,

 

Regards

sh020ho
Level: Powered On

Re: Inserting image into word template to generate a document

@sajarac Were you able to get this to work? I have been trying the same thing but no luck so far.


@sajarac wrote:

Hi there,

 

I have been playing with this for a long time, but is very confusing.

 

Would you mind to explain a little bit for a new guy?

 

What I have so far is:

 

I have created an app where I collect the data and using a flow I can populate a word template and pass the data. But I am having difficulties trying to add the pictures collected and saved in my share point folder associated with the record inserted in the same word document.

 

 

Could you plese point me in the right direction?

 

Thanks in advance,

 

Regards


 

Sub
Level: Powered On

Re: Inserting image into word template to generate a document

 

Hi @sh020ho / @sajarac 

 

If you adding 1 image this should be easy to do

  1. Add Image control to template
  2. Save the image to SharePoint
  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

44456ss1.png

sajarac
Level 8

Re: Inserting image into word template to generate a document

Thank you very much for your help!

 

sh020ho
Level: Powered On

Re: Inserting image into word template to generate a document

Thank you. In my solution, I am trying to add multiple images from SP library to the word document.
Highlighted
Sub
Level: Powered On

Re: Inserting image into word template to generate a document

Is it a Static number of images (in my case I have 3 images being added) or is it more dynamic?

  • If its static then just repeat what I mention.

Sorry looks like Nested Image Controller, Once that has been implemented the below should work.

If it is dynamic then you will need to add the Image Control in a Repeating Section Control and then you will need to tag all the images in a way so that when you do a 'Get Items' action that you're able to get only the items that are required.

 

Then add these into a Object Array (you'll need to do a 'Get File Content' for each file) and then add this Array into the Word Template action.

 

Reference:  Word Online (Business) Connector Document 

 

Sorry I havn't done this with images yet but I think if the above should work. Please let me know if it does, otherwise i'll try and this myself when I have some free time and post my example.   

sajarac
Level 8

Re: Inserting image into word template to generate a document

Thank you again......"when I have some free time and post my example. " I hope you can upload a sample because this is not simple for a new guy.

 

Much appreciated!!!!

sh020ho
Level: Powered On

Re: Inserting image into word template to generate a document

Unfortunately, it is not static. The image file is passed to SP as a part of an checklist and each audit can have multiple images. (N is varying). I am able to extract text by making use of arrays but cannot seem to do this with images.
If you do find some time and help that would be great as I am new to this.
Note: Text data is in SP LIST and images are in SP library.
Sub
Level: Powered On

Re: Inserting image into word template to generate a document

@v-bacao-msft,


@sh020ho wrote:
Unfortunately, it is not static. The image file is passed to SP as a part of an checklist and each audit can have multiple images. (N is varying). I am able to extract text by making use of arrays but cannot seem to do this with images.
If you do find some time and help that would be great as I am new to this.
Note: Text data is in SP LIST and images are in SP library.

From my understanding to make this happen Image Controls need to added into a Repeating Section Control. But from the MS Flow Connectors Docs it mentions that Nested Image controls not supported yet, is there a timeline on when this will be? 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,980)