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

15 REPLIES 15
v-bacao-msft
Community Support
Community Support

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.

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

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
Frequent Visitor

@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


 

 

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

Thank you very much for your help!

 

sh020ho
Frequent Visitor

Thank you. In my solution, I am trying to add multiple images from SP library to the word 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.   

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
Frequent Visitor

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.

@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? 

ColinU
Frequent Visitor

@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?

Have the same issue. Can't find a way to use an image on a list and put it into a word template.

rolivier
Helper I
Helper I

Would also really like to see this functionality added.    Need some sort of way to have repeating images.  

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (42,751)