In this tutorial, Jonathan Silva from Pragmatic Works walks you through the process of saving multiple attachments from Microsoft Forms to a SharePoint list using Power Automate. This approach differs slightly from handling single attachments, and Jonathan provides a detailed explanation of how to adjust your workflow to accommodate multiple file uploads.
If you’re already familiar with storing a single form attachment into a SharePoint list, you’ll notice that handling multiple attachments requires a few additional steps. In the original workflow for a single attachment, the process is straightforward: you capture the form response, retrieve the attachment, and store it in a SharePoint list. But when allowing users to upload multiple attachments, you need to adjust your flow to loop through and store each file individually.
To begin, create a copy of your existing flow. This new flow will be used to handle multiple attachments:
Next, you need to check if there are multiple attachments in the form response:
Now that you've confirmed the presence of attachments, it's time to loop through and append each one:
With the array of attachments now properly formatted, you can update your flow to store them in SharePoint:
After saving your flow, test it by submitting a form with multiple attachments:
While this method is effective for many use cases, there are other ways to handle file attachments in Power Automate. For example, you could use a Canvas App to manage attachments more dynamically or explore other Power Automate features for more complex scenarios.
Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Microsoft Forms, SharePoint, Power Automate and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.