web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Populating word templa...
Power Automate
Unanswered

Populating word template with image inside repeating section control

(0) ShareShare
ReportReport
Posted on by 375

Hi all,

 

I need some help with a an issue I'm having.

 

I have a word template set up that has a few text controls for the populate word template connector to fill. This all works fine.

However, I have an item in SharePoint with multiple pdfs as attachments. I want these to be put into the word doc. I tried doing this by using a repeating content control with a picture inside of it, but that doesn't seem to show in the connector. I have found a few articles talking about creating an HTML document instead and inserting the files into that, but it looks complicated and wanted to ask about this here before putting a lot of time into that.

For starters, can pdfs be put into the picture control at all? If not, how would I insert a pdf into the doc through the connector. I don't need an interactive pdf, just basically a screenshot of its content.

 

Is there an easier way to do this that I'm missing?

 

Thanks

Categories:
I have the same question (0)
  • iAM_BA Profile Picture
    145 on at

    Hi @BradonK 
    I have tried word populate for Image and Text field also  by using following link. 

    This link will useful for you. 
    https://www.youtube.com/watch?v=fpspoJNu5SI

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • BradonK Profile Picture
    375 on at

    Hi @iAM_BA ,

     

    Thanks but that doesn't cover repeating images. I am able to have an image control and use that, but placing the image section inside a repeating section doesn't work. 

     

    Thanks

  • iAM_BA Profile Picture
    145 on at

    Hi @BradonK 

     

    You want to add in table ? or any specific format?

     Please check then following link. 

     

    https://powerusers.microsoft.com/t5/Building-Flows/Inserting-images-via-repeating-tables-in-the-Word-Online/td-p/573257

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • BradonK Profile Picture
    375 on at

    Hi @iAM_BA ,

     

    I had a look through the links in that post and it looks promising, but I have no experience with HTML and so am a bit confused.

     

    The plan is to have a repeating control with an image inside of it. That image will be each page of the attachments. So the image will repeat for the amount of pages in the attachments. That is by itself, I'm just trying to get the attachments into the word doc.

     

    Secondly I want a table with three columns. Name, Date, and Signature. I have the signatures as jpg files so simply want to add these into the table as a repeating control again.

    Unfortunately since an image control can't go inside a repeating control, I can't do either of these things easily.

     

    I saw the replace text with image, but since its a repeating control, it wont just be one text. So I'm not sure what to do there.

     

    I have exported my word file as HTML but don't know where to go from there.

     

    Thanks

  • BradonK Profile Picture
    375 on at

    Hi @iAM_BA ,

     

    Thanks for the walkthrough.

    I'm having a couple issues.

     

    For the moment I'm trying to get all the attachments off a sharepoint list item and put them in the word doc.

    I followed what you said and now a I have a system that gets the attachments of the item, then gets the file content for each one and appends it to an array. It then gets passed to a compose action so that I can add it to the populate word doc action. 

     

    Unfortunately, this isn't working. When I get the file content as base64 it puts [] around the data. Does this invalidate the JSON schema?

    Also, I don't know what term to put in the word doc for the data.

    I currently have:

    <<foreach [value in formContent]>> <<image [value.content]>> <</foreach>>

    But I'm not sure what the term after value. should be.

     

    These are the pictures for the flow.

     

    BradonK_0-1686284896880.pngBradonK_1-1686284904450.png

     

    Thanks again

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard