How to Create a Power Automate Flow for Forms, Word, and SharePoint
Question details
The user needs to build a Power Automate flow that handles Microsoft Forms responses, inserts multiple uploaded images into a Word document template, creates a SharePoint folder, and emails the folder link.

- Product
- Microsoft Power Automate
- Device & OS
- not provided
- Scenario
- Automating employee onboarding or data collection by passing multiple image attachments from Microsoft Forms into a single Microsoft Word document template.
- Observed behavior
- The flow successfully inserts text and a single picture into the Word template, but fails to insert multiple images when a user uploads more than one attachment to the form question.
Ensure you have premium Power Automate licensing, as the 'Populate a Microsoft Word template' action is a premium connector. Additionally, verify that your Word template is saved in an accessible OneDrive or SharePoint document library.
Map Multiple Images to Fixed Picture Content Controls
Use this solution to embed multiple uploaded photos directly into the generated Word document by using individual picture content controls.
Power Automate's Word connector does not currently support repeating sections containing picture content controls well. To bypass this limitation, you must define a strict maximum number of uploads in your form, and create a separate picture control for each expected upload in the Word template.
Open your Word template document. Navigate to the Developer tab, and insert a distinct Picture Content Control for each possible uploaded image (e.g., Picture 1, Picture 2, Picture 3). Save the template back to SharePoint.
In your Power Automate flow, add a separate 'Compose' action for each picture control to handle the expected array of attachments from the Forms response.
Add an 'Apply to each' loop using the attachment data from Microsoft Forms. Inside the loop, use the 'Get file content' action to retrieve each image's binary data.
Add the 'Populate a Microsoft Word template' action. Map the outputs from your specific Compose actions to their corresponding picture content control fields in the action menu.

Save Uploaded Files Directly to a SharePoint Folder
Use this alternative method if you have a variable number of uploaded images and want a more reliable way to store them without mapping them into a Word document.
View and Edit Your Generated Documents with WPS Office
While Power Automate manages your automated workflows in the Microsoft ecosystem, WPS Office provides a lightweight, free, and highly compatible alternative to Microsoft Word for preparing your templates and viewing your final generated documents.

Frequently Asked Questions
Why do repeating picture content controls fail in Power Automate?
The 'Populate a Microsoft Word template' premium connector currently has limited support for repeating sections that contain picture content controls. It works best with repeating text, but struggles to dynamically allocate varying numbers of images, requiring fixed individual picture controls instead.
What happens if a form user uploads fewer pictures than my Word template expects?
If your Power Automate flow strictly maps four uploaded images to four picture controls, but the user only uploads two, the flow may fail when trying to retrieve non-existent array items. You can fix this by adding condition branches to supply a default blank image when an upload is missing.
Can I automatically email the populated Word document as a PDF?
Yes. After the 'Populate a Microsoft Word template' action, you can add the 'Convert Word Document to PDF' action (often requires a OneDrive temporary save step), and then attach that newly created PDF to an 'Send an email (V2)' action.




