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 / Emailing files based o...
Power Automate
Unanswered

Emailing files based on selection on a Microsoft Form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all, I'm a beginner with Power Automate and was wondering if I'd be able to get some assistance. I've looked around at previous answers, and I've found folks that needed to get several files off of OneDrive or Sharepoint and attach them all to an email, but my case is a little different, and I'm not sure how to go about it.

 

Scenario:

I have a Microsoft Form where a user has ten options (they can select one, or multiple). The ten options each correspond with a different file on OneDrive (all the files are in the same folder). If the user selects in the form that they want File 1, File 5, and File 10, how would I create a flow to get and attach only those files to an email?

 

Thank you!

Categories:
  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    This is a blog Post I wrote on how to email files that are uploaded to an MS Form. 

    Emailing File Attachments from Forms with Power Automate – What Me Pa..Panic? (dontpapanic.com)

    What you want to do is similar, but in steps 2 & 3 you'll need to use the selections provided in the form to create the path to the file they selected.  Then in Step #4 you get the file content using that Path instead of the file ID.  

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Great to meet you Mr. Stork! It's funny, you're actually the reason why I tried out Power Automate... I didn't even know it existed before, until I was googling around and found your blog!

     

    Can you provide a little more guidance in terms of "you'll need to use the selections provided in the form to create the path to the file they selected"? Right now in the (very basic) stuff I've been doing, I've been creating a bunch of individual Condition: Control where it looks at the question, sees if they checked off "General" and then creates an email and sends the "General" file. And so on and so forth for all the other files. Which is clearly not the best way to be doing it! 😄

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    Since the files are all in the same folder, and there are only 10.  You can just hard code the file paths for each file.  Then use a switch to choose which file out of the ten the user is requesting.  Then retrieve content using the path and append it to the array as the blog shows.  Do that in the loop based on the multiple choices made and you'll have the array to add to the email.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard