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 / multiple images word t...
Power Automate
Answered

multiple images word template

(0) ShareShare
ReportReport
Posted on by 340

Hi all,

 

My goal is to upload multiple images from PowerApps to a document library and then populate a Word template with these images. No the number of images may vary so it needs to be dynamic. I came across this article which explains the process of using a repeating table

https://www.matthewdevaney.com/power-automate-create-word-document-with-a-repeating-section/ 

 

I thought i could apply this same method to images from a document library. So this would be the flow:

 

Get files in the folder > get file content (for all) > select all required info > populate template

 

I am getting stuck at the file content part for all files. I've tried a Parse JSON to apply to each but not getting anywhere. Is my scenario above doable?

 

Thanks,
David

Categories:
I have the same question (0)
  • da1ve Profile Picture
    340 on at

    Hi @AlexEncodian ,

     

    Thanks, I've seen this connector before but have never tried it until now. I've given it a go and it works as expected for text but with images I'm having some trouble:

     

    This is the flow

    da1ve_0-1682912105114.png

    The Compose action gives me this info (I've only copied part of the base64 so it can fit)

     

    [
     {
     "Description": "pic1",
     "Name": "error.PNG",
     "base64": "iVBORw0KGgoAAAANSUhEUgAAAVkAAAC1CAYAAAD1A4y..."
     },
     {
     "Description": "pic2",
     "Name": "happy.jpeg",
     "base64": "/9j/4AAQSkZJRgABAQEAtAC0AAD/4RX+RXhpZgAASUkq..."
     }
    ]

     

     And then I used that output in the Encodian connector:

     

    {
     "companyName": "Encodian",
     "images": "@{outputs('Compose')}"
    }

     

    But I get this error

     

    {"HttpStatusCode":400,"HttpStatusMessage":"Bad request","Errors":["A error occurred parsing the JSON document provided: After parsing a value an unexpected character was encountered: D. Path 'images', line 5, position 9."],"OperationStatus":"Error"}

     

    And then in my Word template I am using the following: 

    <<foreach [image in images]>><<[image,Description]>> <<[image,base64]>>
    <</foreach>>

     

    Any idea where I am going wrong?

     

    Thanks,
    David

  • da1ve Profile Picture
    340 on at

    @AlexEncodian 

    I have logged a support ticket

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard