cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

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
Highlighted
Advocate I
Advocate I

Re: Inserting image into word template to generate a document

13 REPLIES 13
Highlighted
Community Support
Community Support

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.
Highlighted
Advocate I
Advocate I

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

Highlighted
Advocate I
Advocate I

Re: Inserting image into word template to generate a document

Highlighted
Kudo Kingpin
Kudo Kingpin

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

Highlighted
Frequent Visitor

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


 

Highlighted
Advocate I
Advocate I

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

Highlighted
Kudo Kingpin
Kudo Kingpin

Re: Inserting image into word template to generate a document

Thank you very much for your help!

 

Highlighted
Frequent Visitor

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.
Advocate I
Advocate I

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.   

Highlighted
Kudo Kingpin
Kudo Kingpin

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!!!!

Highlighted
Frequent Visitor

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.
Highlighted
Advocate I
Advocate I

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? 

Highlighted
Frequent Visitor

Re: Inserting image into word template to generate a document

@v-bacao-msft any update on this? I can see no workaround to have repeating images by row in tables via a flow.. Is this a planned or soon to be implemented feature?

 

Do you have a suggestion or work around for now?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,496)