web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send Email with Multip...
Power Automate
Unanswered

Send Email with Multiple Attachments based on Form Selections

(0) ShareShare
ReportReport
Posted on by 2
On Forms (see attached), respondents have the option of selecting several items that correspond to files stored in a OneDrive folder. Once they make their selection and submit the Form, I need all of the files they requested to be emailed. I know how to create a flow that sends 1 attachment when the respondent selects 1 Form item only. I cannot figure out how to write a flow that will pull multiple files if the respondent requests more than 1 file.  For example, they select 'Box Car' and 'Animal Walks'. Each time I try selecting more than 1, the flow skips 'Get File Content' and 'Send Email' (see attached screenshots). 
 
It seems like it has something to do with creating an array and using parse JSON but I'm very new to this and haven't been successful.
 
The AI in power automate suggested a flow using HTTP but I don't have access to that feature. 
Categories:
Screenshot 2025-0...
Screenshot 2025-0...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • MMcCloud Profile Picture
    357 Super User 2025 Season 2 on at
    Good Afternoon,
     
    To send multiple emails we can do the following:
     
    Create a flow based off the responses
     
    First "Initialize Variable" action and do an Array for the type.
     
    do a conditional check like is A = to Yes or B = to Yes for each file and so on for each file have a pre-assigned file to use action:
    "Get File Content" on put the correct site location and the Id for the current file based on the "Condition" for the question you are currently on.
     
    Now that you have the content of your file and the array exist we need to add that file and that content to your array. It will look like the following:
     
    Your name in this step will be the name of your file you pre-determined!
    Body will be the dynamic value like above from the previous step.
     
     
    At this point continue to the next step in the process which will be the same conditional statement. Which you will then repeat the steps above for.
     
    The only other thing that I can think of in this solution is you may need a base case for if they choose no files and that when you email the user with their files you click on the array to convert from dynamic content to an array and select your array value and you should be done!
     
    If this answers your question pick me as the solution. If you still require assistance, be sure to comment I will circle back around to assist!
     
    Have a great day!


     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard