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 / 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
    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

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