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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Populate word template...
Power Automate
Unanswered

Populate word template with array of images

(1) ShareShare
ReportReport
Posted on by 20

I am trying to create a flow that takes all images from share point folder and populate in word template. Currently folder in sharepoint and word template both have 4 images with .png extenstion and 4 image placeholders respectively.
i have tested the base64 prefectly encode to the required image . i am not sure why populate ms word template not working, is it license issue.

i read online that instead of array, one sud declare it object and then populate, but i m not sure how to do it also things work good with single image, but how abt array of images.

can it be license issue

1.png
2.png
Categories:
I have the same question (0)
  • swami12345 Profile Picture
    20 on at

    @AlexEncodian 

    how can i modify my flow so that i can populate the images from an array in the word template using Encodian's populate word template

  • swami12345 Profile Picture
    20 on at

    @AlexEncodian 

    Thank you for your feedback.

    I want to know whether i can modify the Encodian template as per my requirement. If yes, then can i develop JSON for the template to use in Power-automate flow.

  • swami12345 Profile Picture
    20 on at

    hi @AlexEncodian 

    how can i modify encodian template to include the other info like Element_ID, Floor_Number etccurren1.png

    current Encodian template looks like 

    2.png

     

    aldo my http request is also not able to fetch the info like ElementID, Floor_Number3.png

  • swami12345 Profile Picture
    20 on at

    hi @AlexEncodian I tried the approach, but its not working for me,

    below is my QR code array 

    {
    "QRCodes": [
    {
    "Name": "Test",
    "Base64image":"@{first(variables('QRCodes'))}",
    "Floor_Number":"@{first(variables('Floor_Number_Array'))}",
    "Structural_Condition":"@{first(variables('Structural_Condition_Array'))}",
    "Element_ID":"@{first(variables('Element_ID_Array'))}",
    "Remarks":"@{first(variables('Array_Remarks'))}"

    },
    {
    "Name": "Test",
    "Base64image":"@{first(skip(variables('QRCodes'),1))}",
    "Floor_Number":"@{first(skip(variables('Floor_Number_Array'),1))}",
    "Structural_Condition":"@{first(skip(variables('Structural_Condition_Array'),1))}",
    "Element_ID":"@{first(skip(variables('Element_ID_Array'),1))}",
    "Remarks":"@{first(skip(variables('Array_Remarks'),1))}"
    },
    {
    "Name": "Test",
    "Base64image":"@{first(skip(variables('QRCodes'),2))}",
    "Floor_Number":"@{first(skip(variables('Floor_Number_Array'),2))}",
    "Structural_Condition":"@{first(skip(variables('Structural_Condition_Array'),2))}",
    "Element_ID":"@{first(skip(variables('Element_ID_Array'),2))}",
    "Remarks":"@{first(skip(variables('Array_Remarks'),2))}"
    },
    {
    "Name": "Test",
    "Base64image":"@{first(skip(variables('QRCodes'),3))}",
    "Floor_Number":"@{first(skip(variables('Floor_Number_Array'),3))}",
    "Structural_Condition":"@{first(skip(variables('Structural_Condition_Array'),3))}",
    "Element_ID":"@{first(skip(variables('Element_ID_Array'),3))}",
    "Remarks":"@{first(skip(variables('Array_Remarks'),3))}"
    },
    {
    "Name": "Test",
    "Base64image":"@{first(skip(variables('QRCodes'),4))}",
    "Floor_Number":"@{first(skip(variables('Floor_Number_Array'),4))}",
    "Structural_Condition":"@{first(skip(variables('Structural_Condition_Array'),4))}",
    "Element_ID":"@{first(skip(variables('Element_ID_Array'),4))}",
    "Remarks":"@{first(skip(variables('Array_Remarks'),4))}"
    },
    {
    "Name": "Test",
    "Base64image":"@{first(skip(variables('QRCodes'),5))}",
    "Floor_Number":"@{first(skip(variables('Floor_Number_Array'),5))}",
    "Structural_Condition":"@{first(skip(variables('Structural_Condition_Array'),5))}",
    "Element_ID":"@{first(skip(variables('Element_ID_Array'),5))}",
    "Remarks":"@{first(skip(variables('Array_Remarks'),5))}"
    },
    {
    "Name": "Test",
    "Base64image":"@{first(skip(variables('QRCodes'),6))}",
    "Floor_Number":"@{first(skip(variables('Floor_Number_Array'),6))}",
    "Structural_Condition":"@{first(skip(variables('Structural_Condition_Array'),6))}",
    "Element_ID":"@{first(skip(variables('Element_ID_Array'),6))}",
    "Remarks":"@{first(skip(variables('Array_Remarks'),6))}"
    },
    {
    "Name": "Test",
    "Base64image":"@{first(skip(variables('QRCodes'),7))}",
    "Floor_Number":"@{first(skip(variables('Floor_Number_Array'),7))}",
    "Structural_Condition":"@{first(skip(variables('Structural_Condition_Array'),7))}",
    "Element_ID":"@{first(skip(variables('Element_ID_Array'),7))}",
    "Remarks":"@{first(skip(variables('Array_Remarks'),7))}"
    },
    {
    "Name": "Test",
    "Base64image":"@{first(skip(variables('QRCodes'),8))}",
    "Floor_Number":"@{first(skip(variables('Floor_Number_Array'),8))}",
    "Structural_Condition":"@{first(skip(variables('Structural_Condition_Array'),8))}",
    "Element_ID":"@{first(skip(variables('Element_ID_Array'),8))}",
    "Remarks":"@{first(skip(variables('Array_Remarks'),8))}"
    },
    {
    "Name": "Test",
    "Base64image":"@{first(skip(variables('QRCodes'),9))}",
    "Floor_Number":"@{first(skip(variables('Floor_Number_Array'),9))}",
    "Structural_Condition":"@{first(skip(variables('Structural_Condition_Array'),9))}",
    "Element_ID":"@{first(skip(variables('Element_ID_Array'),9))}",
    "Remarks":"@{first(skip(variables('Array_Remarks'),9))}"
    },
    {
    "Name": "Test",
    "Base64image":"@{first(skip(variables('QRCodes'),10))}",
    "Floor_Number":"@{first(skip(variables('Floor_Number_Array'),10))}",
    "Structural_Condition":"@{first(skip(variables('Structural_Condition_Array'),10))}",
    "Element_ID":"@{first(skip(variables('Element_ID_Array'),10))}",
    "Remarks":"@{first(skip(variables('Array_Remarks'),10))}"
    }]
    }, error is 

    {
      "HttpStatusCode"400,
      "HttpStatusMessage""Bad request",
      "Errors": [
        "The following error occurred populating the word document provided:  Tag 'value' is not well-formed. Token 'value' is unexpected."
      ],
      "OperationStatus""Error"
    }. What changes should i make 1.png2.png4.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard