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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Adding image to a word template based on column Name

(0) ShareShare
ReportReport
Posted on by 141

I have a flow that is taking information from a SharePoint List and populating a word document.  On the same SP Site, I have a document library with images.  I would like to grab the images from that document library using the project name.  I'm not sure how I can input that into my flow to do that and would appreciate some assistance.  Please let me know if any additional information is needed. 

 

I have the same question (0)
  • v-litu-msft Profile Picture
    on at
    Re: Adding image to a word template based on column Name

    Hi @eenochs,

     

    Do you mean to populate the word template with all the pictures with the same project name in the photo library? 

    Is the number of pictures fixed?

    If possible, you could share more information about your desire and share some screenshots of your Flow built so far.

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • eenochs Profile Picture
    141 on at
    Re: Adding image to a word template based on column Name

    Yes.  Populate a word template with images from a document library.  The link between the list item and the document library will be the ID.  I finally figured out how to filter out the images using the Get Files properties using a filter.  

    The issue I'm getting now is when I look at the dynamic content from Get Files I don't see any type of file content or what I can throw into the Populate word template.  I've included some screenshot below.  when i look at the dynamic content I don't see anything that will reference the image.  The other thing I found out is the library that the images are stored in is called a picture library.  Type says picture library.  The error I'm getting is The image is not of type PNG or JPG. Please provide an image of type PNG or JPG. clientRequestId: 5bd9e6fd-907a-4910-b281-d94ef9419083

    sportsflowimage1.png

  • v-litu-msft Profile Picture
    on at
    Re: Adding image to a word template based on column Name

    Hi @eenochs,

     

    To get append image into image field of Word template, should add the Get file content action:

    Annotation 2020-07-16 175720.jpg

     

    Annotation 2020-07-16 175855.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • eenochs Profile Picture
    141 on at
    Re: Adding image to a word template based on column Name

    Thank you for the update, i tried that but the file content doesn't show up for me.  I see the following.  

    eenochs_0-1594906908470.png

     

  • eenochs Profile Picture
    141 on at
    Re: Adding image to a word template based on column Name

    Please see my message above regarding the file content issue. 

  • v-litu-msft Profile Picture
    on at
    Re: Adding image to a word template based on column Name

    Hi @eenochs,

     

    OK, this issue sometimes will happen, as a workaround, you could input the expression instead:

    body('Get_file_content')

    Annotation 2020-07-22 175349.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • eenochs Profile Picture
    141 on at
    Re: Adding image to a word template based on column Name

    I'm still getting the Image is not of type PNG or JPG.  It's weird in the previous actions i see the input of the file content seeing the image but in the populate word actions, it gives me the error. 

    eenochs_0-1595421903485.png

     

     

     

  • v-litu-msft Profile Picture
    on at
    Re: Adding image to a word template based on column Name

    Hi @eenochs,

     

    How about trying to only input content into it?

    body('Get_file_content')['$content']

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard