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 / Using multiple files f...
Power Automate
Unanswered

Using multiple files from MS Forms in Send Email action

(0) ShareShare
ReportReport
Posted on by 26

Hello all

 

I am having a hard time with using multiple files uploaded in Forms in an email.

 

I have a working flow which forwards files (uploaded in forms) to a mail recipient. In this existing flow it is only possible to upload one single document. 

 

MarioS85_0-1644940593883.png

MarioS85_1-1644940647210.png

 

Now I want to add two more uploads in the Form. I don't want to increase the limit of attachments in the existing upload function... it has to be like this...

MarioS85_2-1644941000996.png

 

I already tried to just add a similar Parse JSON action, then like repeat the same apply to each -> get content file using path (sequentially and/or in a parallel branch) and so on but in the end I am not able to use the file content of at least one "get file content" action, which seems mandatory, in the send an email action as the mail has to be nested in one of the apply to each actions.

 

Any suggestions how I can use the get file content output outside this apply to each or how to access both later in the process?

Or any other solution is welcomed.

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-LilyW-msft Profile Picture
    on at

    Hi @MarioS85 

    You can take a try to initialize an array variable, then append all file names and contents to this variable. Finally, fill the variable into the Attachments field in Send an email action.

    I set up a flow, you can refer to below screenshots to see if it helps.

    vLilyWmsft_0-1645172780293.png

    vLilyWmsft_1-1645172791617.png

    vLilyWmsft_5-1645173180710.png
    vLilyWmsft_3-1645172926762.png
    vLilyWmsft_4-1645173005604.png
    vLilyWmsft_6-1645173256445.png
    vLilyWmsft_15-1645174250413.png
    vLilyWmsft_14-1645174223129.png
    Complete Flow:
    vLilyWmsft_17-1645175963465.png

     

    When a new response is submitted like below:

    vLilyWmsft_9-1645173564796.png
    An email with multiple attachments will be sent.
    vLilyWmsft_16-1645174350928.png

    Hope the content above may help you.

    Best Regards

    If my reply helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • MarioS85 Profile Picture
    26 on at

    Thank you 🤘

     

    Exactly what I was looking for... Working perfectly!

  • Kagerou Profile Picture
    7 on at

    Hi v-LilyW-msft, I did exactly like your steps but came down with error,

    Kagerou_0-1651038399151.png

    Kagerou_1-1651038412279.png

    Kagerou_2-1651038465090.png

    Do you know what is the error about?

  • MarioS85 Profile Picture
    26 on at

    @Kagerou i guess you should add a recipient, a subject and a body to your send-email-action...?

  • Kagerou Profile Picture
    7 on at

    Please refer below:-

    Kagerou_0-1651040918084.png

     

  • MarioS85 Profile Picture
    26 on at

    @Kagerou and you are still getting the same error message saying that there is no input parameter for To, Subject and Body? I am not an expert so I really would not have a proper solution for this error.

     

    Maybe delete the send email action, save and then add a new send email action which is similar to the previous one...

  • Kagerou Profile Picture
    7 on at

    Same error, It Will only work if I do it like this (see image below), but the prob is it will only send the first uploaded file, as for the second one it will ignore. The error starts appearing after i add the array flow...

    Kagerou_0-1651071152062.png

     

  • KStallard Profile Picture
    15 on at

    Hi @v-LilyW-msft 

    I'm having an issue where one of the files doesnt open when it arrives as an attachment - any ideas why or how I can overcome it?

  • KStallard Profile Picture
    15 on at

    No matter! I have realised where I was going wrong 🙂

    Great flow and works perfectly when the users follows the steps accurately 😄

  • ddavid Profile Picture
    4 on at

    I have exactly the same problem with the same error message.

    Did you find the solution ?

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard