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 attachments based...
Power Automate
Unanswered

Send attachments based on forms response

(0) ShareShare
ReportReport
Posted on by 17

Hi,

 

Very new to power automate.

 

I would like to have a form that triggers multiple attachments to be sent via email, depending on response.

 

Example

I select an option called house plans and I get sent an email with my house plans attached as an email.

 

any help would be appreciated

 

 

 

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @Pepy51 

    where these attachments will be originally saved?

     

  • Pepy51 Profile Picture
    17 on at

    on OneDrive, just using this to consolidate files and email to the form submitter

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @Pepy51 

    So your flow should run on When a response is submitted and then get Response details:

    Mira_Ghaly_0-1619485566286.png

    Then you need a switch condition on the answer of your question and the Get Files from onedrive and send them will post you a sample soon

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @Pepy51 

    I suggest you to group the files you want to send in one email per response type in a single one drive folder , so we can pick the files in a folder and send them in a single email:

    1. Initialize array variable and then Find Files in a folder

    Mira_Ghaly_2-1619487040449.png

    Notes: Type the File extension in the search query and add the path manually ..View selection is not working

    Mira_Ghaly_3-1619487257226.png

    Mira_Ghaly_4-1619487333291.png

    Hope this makes sense!

     

     

  • Pepy51 Profile Picture
    17 on at

    Fantastic!

     

    Tried and working, how do I do it for multiple file types in the same folder?

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @Pepy51 

    Please check below:

    Just use .

    Mira_Ghaly_0-1619492510448.png

     

  • Pepy51 Profile Picture
    17 on at

    You are a life saver?

     

    Now if I have multiple options how do I send different files dependent on response

  • Verified answer
    Mira Ghaly Profile Picture
    11,413 Moderator on at

    @Pepy51 

    do you mean that the user can select multiple options at the same time and hence can send multiple folders?

    Can you share how your flow is currently structured?

     

  • Pepy51 Profile Picture
    17 on at

    to search and the entire folder does not work I get the following error

    Pepy51_1-1619498950266.png

     

     

    This is my current Flow

     

    Pepy51_2-1619498986109.pngPepy51_3-1619499012880.png

     

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @Pepy51 

    Lets fix issue with search first , can you please let me know how many items is there in your one drive is it 6 or 5?

    When you click next in your apply to each did it fail for all items

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard