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 / Send attachments based...
Power Automate
Answered

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,415 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,415 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,415 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,415 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,415 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,415 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

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard