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 / MS Form with Multiple ...
Power Automate
Suggested Answer

MS Form with Multiple Optional File Upload Questions

(0) ShareShare
ReportReport
Posted on by 30
I have a flow that will do the following:
 
When a response is submitted, create an item on a SharePoint list and populate it with values from the form response.
Create an HTML file from the response, convert it to a PDF, and add the PDF to a SharePoint library.
Take files from an optional file upload item on the form, append them to an array variable, create files from them and add the files to the same SharePoint library.
 
These are my steps:
 
Here's where I'm stuck. I think I need parallel branches. One for when there are no supporting documents would send an email with just the form response PDF as an attachment. One if there are supporting documents would send both the form PDF and the supporting documents as attachments. I just don't know how to do it. I can't even figure out how to attach just the form PDF to an email within the same flow.
Categories:
I have the same question (0)
  • Suggested answer
    BhaskarDhone Profile Picture
    1,398 Super User 2026 Season 1 on at
    You don’t need parallel branches. Instead:
        1.    Create an array variable called Attachments.
        2.    Add the PDF to this array.
    {
      "Name": "FormResponse.pdf",
      "ContentBytes": <PDF file content>
    }

        3.    If files were uploaded, loop through them and add each to the same array.
    {
      "Name": <filename>,
      "ContentBytes": <file content>
    }
        4.    In the Send Email action, use this array in the Attachments field.
        
    Attachments: @{variables('Attachments')}

    Power Automate will send:
        •    Just the PDF if no files were uploaded.
        •    PDF + files if uploads exist.
     
  • LaurieL Profile Picture
    30 on at
     I don't know how to reply to  but I don't know how to do what you're suggesting. I don't know how I would incorporate these steps into my existing flow. I don't know how to get the PDF file content. I don't see it in the dynamic content. I'm not that great at Power Automate. It would help if there were a YouTube tutorial or something I could watch.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard