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 / Image extracts from a ...
Power Automate
Unanswered

Image extracts from a variable but not extract from an array (flow doesn't detect image in array)

(0) ShareShare
ReportReport
Posted on by

Hi, in my flow I am trying to use image from an array of images in a Microsoft Word template.

Let's say that I have 6 images in my array "pics". when I initialize a variable as variables('pics')[0], it works perfectly and takes the first image from the array.

 

I would like to automate that so I don't have to create 6 (and later unlimited number of) variables. I thought that I can just use the same code directly in Microsoft word template (as below):

plona95_0-1716206597809.png



And the above shows me an error message that the image must be a JPG or a PNG file.

 

Why? When I initialize a variable object of variables('pics')[0] and then put variables('Pics') in a Word Template then it all works fine, but I cannot do this as I would like to use an array without variables

 

Any advice? Thank you

Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @plona95 ,

     

    What does the Image array look like? I recommend you check if each data of Image has data format the word template expects.

     

    Best regards,

    Rimmon

  • plona95 Profile Picture
    on at

    Hi Rimmon,

     

    I create the image array from the document library, as below:

    plona95_0-1716291151308.pngplona95_2-1716291174030.png

     

    plona95_3-1716291181536.png

    plona95_4-1716291192295.png

     

     

    Is that helpful?

     

    Then I initialize pictures one by one through variables('pics')[0],[1],etc

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 86 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 55

#3
Ellis Karim Profile Picture

Ellis Karim 53 Super User 2026 Season 1

Last 30 days Overall leaderboard