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 / Inserting Multiple Ima...
Power Automate
Suggested Answer

Inserting Multiple Images from MS Forms Response into A Word Template with content Controls set-up

(1) ShareShare
ReportReport
Posted on by 2

Objective

I’ve created a Microsoft Form designed to collect detailed daily task reports. Each task is divided into five sections, Task 1, Task 2, Task 3, Task 4, Task 5, and each section includes several text-based questions such as:

  • “What were the weather conditions today?”
  • “What activity was executed today?”

Text responses are successfully being inserted into a Word template using content controls.

 

Current Challenge

Each section also includes an optional image upload question. Respondents can upload up to three images per section, resulting in a potential total of 15 images per form submission.

The issue: While text responses are correctly mapped to the Word template, the uploaded images are not yet being inserted into the corresponding content controls.

Example Scenarios

  • User A uploads:

    • 1 image in Task 1
    • 3 images in Task 4
  • User B uploads:

    • 3 images in Task 5

Word Template Setup

The Word document uses content controls with the following naming convention:

  • T1I1, T1I2, T1I3 → Task 1 Images 1–3
  • T2I1, T2I2, T2I3 → Task 2 Images 1–3
  • ...
  • T5I1, T5I2, T5I3 → Task 5 Images 1–3

Each content control is intended to hold one image.


Goal

Enable dynamic insertion of uploaded images into the correct content controls in the Word template, based on the section and image number.

 
Categories:
I have the same question (0)
  • Suggested answer
    Jon Unzueta Profile Picture
    1,834 Super User 2026 Season 1 on at
     

    You've built a Microsoft Form to collect daily task reports, including optional image uploads per task section, and you're successfully inserting text responses into a Word template using content controls. However, you're facing a challenge: dynamically inserting uploaded images into the correct content controls (e.g., T1I1, T1I2, T1I3 for Task 1 images) based on the section and image number.

    Here’s how you can solve this using Power Automate, based on best practices and tutorials like Christian Abata’s guide  and Cloudmersive’s walkthrough .

     


    ✅ Step-by-Step Strategy to Insert Images into Word Content Controls

    1. Capture Uploaded Images from Microsoft Forms

    • Each image upload question in Forms creates a link to the image file stored in OneDrive or SharePoint.
    • Use the “Get response details” action in Power Automate to extract these links.

    2. Download the Images

    • Use the “HTTP” or “Get file content” action to download each image from its URL.
    • Store the image content in a variable for later use.

    3. Prepare the Word Template

    • Ensure your Word template has image content controls named exactly as per your naming convention (e.g., T1I1, T1I2, etc.).
    • These controls must be plain image content controls, not text or rich text.

    4. Insert Images into Content Controls

    • Use the “Populate a Microsoft Word Template” action.
    • For each image control (e.g., T1I1), map the corresponding image content variable.
    • If a user didn’t upload an image for a specific slot, leave that control blank or insert a placeholder.

    5. Handle Conditional Logic

    • Use “Condition” actions to check if an image was uploaded for each slot.
    • Only populate the control if the image exists.

    6. Save and Convert

    • Save the populated Word document to SharePoint or OneDrive.
    • Optionally, use “Convert Word Document to PDF” if needed.

    🧠 Tips for Dynamic Mapping

    • Use arrays and loops to iterate through uploaded images per task.
    • Use naming conventions in your flow to dynamically reference controls (e.g., concat('T', taskNumber, 'I', imageIndex)).
    • Consider using Cloudmersive Document Conversion connector if native actions fail to insert images reliably.
     
    🏷️ Tag me if you have any further questions or if the issue persists. ✅ Click "Accept as Solution" if my post helped resolve your issue—it helps others facing similar problems. ❤️ Give it a Like if you found the approach useful in any way.

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
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard