File Sharing Problems

How to Create Clickable Links for Multiple Microsoft Forms Attachments

Olivia MillerOlivia Miller Oct 14, 2026 869 views

Question details

The user needs to extract URLs for all files uploaded via Microsoft Forms and convert them into clickable links within a generated document or PDF.

How to Create Clickable Links for Multiple Microsoft Forms Attachments
Product
Power Automate / Microsoft Forms
Device & OS
not provided
Scenario
Generating a PDF document from Microsoft Forms responses that contain multiple file attachments.
Observed behavior
Power Automate natively extracts only the first uploaded file's URL, failing to process the remaining attachments in the array.
Before you start

Ensure your Microsoft Form is configured to accept multiple file uploads and that you have access to Power Automate with connectors capable of converting HTML or Word documents to PDF.

Solution 1Recommended

Use an Apply to Each Loop in Power Automate

Process the JSON array of attachments systematically to extract and combine all file names and URLs before generating the PDF.

Because Microsoft Forms stores multiple file uploads as a JSON array, you cannot map the attachment dynamic content directly into a single string. You must parse the array and loop through each item to capture every link.

1
Parse the Attachment JSON

Add a 'Parse JSON' action in your flow. Use the attachment response dynamic content from Microsoft Forms as the content input, and generate the schema from a sample response.

2
Initialize a String Variable

Add an 'Initialize variable' action at the top level of your flow. Set its type to 'String' to store the combined HTML links.

3
Loop Through the Attachments

Add an 'Apply to each' action and select the parsed JSON array as the input. Inside the loop, add an 'Append to string variable' action.

4
Format the Clickable Links

In the 'Append to string variable' action, format the link using HTML (e.g., <a href="@{items('Apply_to_each')?['link']}">@{items('Apply_to_each')?['name']}</a><br>). This creates a clickable URL for each individual file.

5
Insert into the Document Template

Use the completed string variable as dynamic content inside your 'Create HTML file' or 'Populate a Microsoft Word template' action, which you can then proceed to convert to a PDF.

Use an Apply to Each Loop in Power Automate
Power Automate Community Support: If you encounter complex array parsing errors or need workflow-specific assistance, consider posting your flow configuration in the Microsoft Power Automate Community for expert guidance.
Free Microsoft Office alternative

Try WPS Office for Your Document and PDF Needs

While Power Automate handles complex automated workflows, WPS Office is an excellent, free alternative to Microsoft Office for editing, viewing, and managing the final PDF and Office documents you generate.

  1. 1. Download and Install: Visit the WPS Office website to download the free suite and install it on your computer.
  2. 2. Open Your Generated Document: Locate the PDF or Word document generated by your workflow and open it directly in WPS Office.
  3. 3. Review Clickable Links: Use the WPS PDF viewer to test the clickable links and ensure all your Microsoft Forms attachments are correctly referenced.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats.Built-in robust PDF editor to view, annotate, and modify generated documents.Lightweight software that ensures fast performance on any device.Familiar user interface makes seamless migration easy.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Power Automate only extract the first attachment from Microsoft Forms?

Microsoft Forms outputs multiple attachments as a JSON array. If you attempt to use the dynamic content directly without iterating through the array via an 'Apply to each' loop, Power Automate defaults to fetching only the first item.

Can I format the extracted attachment links as a bulleted list in my final PDF?

Yes. You can initialize a string variable with HTML list tags (<ul>). Inside your 'Apply to each' loop, append each attachment link surrounded by list item tags (<li>), and then close the unordered list tag (</ul>) after the loop finishes.

Where is the best place to ask for help with Power Automate workflows?

The Microsoft Power Automate Community is the official and most active forum for troubleshooting flow logic, complex JSON parsing, and Office Scripts integrations.