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 an email with mul...
Power Automate
Unanswered

Send an email with multiple attachment from multiple forms question

(1) ShareShare
ReportReport
Posted on by 2
Hi users, 
 
I would like to send the uploaded files from a form by mail.
The form has 2 questions with files.
=> 1 of the question is required (only 1 file)
=> The other question is for "additional doc" and is not required (no limit on the number of files).
 
For now, I have been able to upload those files to the SharePoint list. For that, I've created variables and conditions to check if the additional documents are "null" or not.
 
When trying to send the email with the uploaded file:
The error message I received is: "The API operation 'SendEmailV2' is missing required property 'emailMessage/Attachments/0/ContentBytes'."
I tried to append another array to the variable "VarFile" with value ("name" coming from the item and "content bytes" from get fil contents).
But it doesn't work so I guess there is something I completely missed.
 
See my flow below:
1st screen: get all the attachment responses from the form (with loop)
2nd screen: get file contents of my variable  and add attachments to SharePoint list (loop) and send by mail (out of the loop)
 
1st:
 
2nd screen:
 
Thank you in advance for your help !!
Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at
    Hi
     
    So here you have varFiles array variable you are iterating and appending the same variable array under Append to array variable 2. This is not quite right. Declare another array to append the filename and filecontents. Also if you could expand your join expressions and mappings it would be much clearer to understand what's going on.
     
    Thanks
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at
    Have a look at this video from Paul. This could be useful.
     
     
    Thanks

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard