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 / Mass Sending Emails wi...
Power Automate
Unanswered

Mass Sending Emails with corresponding attachments for each item using information from excel table

(1) ShareShare
ReportReport
Posted on by 10
Hello good day,
 
I would like to ask for help on building this workflow. The context is that I have this excel table which have all the information I need to send out an email. I have a column for email addresses, amount, and also a specific file name that matches a file in a sharepoint folder. What I want to happen with this is for example on row 1 to 10 all have the same email address meaning it will be sent to one person only, I do not want to send 10 email messages with 10 different attachments. The goal is to send 1 email message that have a consolidated table of the information from that 10 rows on the email body and attached are the files that are pulled from a sharepoint folder by mapping the file name on the excel file and pulling it from the sharepoint folder.
 
The part that I am struggling at is pulling the attachments from sharepoint folder and attaching these pulled files into one email message only. I have made it work already for the email body. Mapping the attachment is where I struggle as well as putting it into one email action only


Please help me everything is greatly appreciated.
 
 
Categories:
I have the same question (0)
  • David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    I can help you get started on this, but I am not sure how to generate the e-mails. Do this as a first step:
     
    Explanation:
    1. The Get items action would be your List rows action to get all of the rows in the spreadsheet.
    2. Use the Select action to get the e-mail addresses from the rows returned.
    3. Use a compose action with a union expression to get all of the unique values. This is the expression: union(body('Select'), body('Select'))
    4. Run the flow up to this point and copy the output of the compose action. Then add the Parse JSON action and you can use the output of the run's compose action to generate the scheme for the parse JSON action.
    5. Point the body of the Parse JSON action to the Apply to each action.
    6. Replace my second Compose action (Compose Email) with another List rows present in a table action and use a filter query to get the rows where the e-mail address in the Excel file equals the e-mail address of the current item in the apply to each.
     
    From here on, I am not sure what you need to do. I am sure it can probably be done, but I've never had the occasion to do what you're asking. If you get this far, post another question specifically asking how to generate the e-mails or maybe someone will post an idea here.
  • David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    Sorry, looking at your post and image again, it looks like you already figured out the portion I listed below. So, I guess I am no help 😊 Good luck with the rest.
  • Michael E. Gernaey Profile Picture
    53,369 Super User 2025 Season 2 on at
     
    Without your flow, I am going to assume you already have a loop in there to go over all the 10 rows to get information.
     
    So how do you do your attachments?
    Like this
     
    1. Create an Array, that will store the file name and Content
    2. in the loop add the filename and content to the array
    3. In your Email add the array as the Attachments in a single expression, which is simply your variable output
     
    Example: With the only difference is the example uses Get files to have their loop, you are looping on your excel rows
     
    if this resolves your issue please Mark the answer as such and maybe a like.
     
    If you have further questions please ask
     
     
     
  • JS-30100303-0 Profile Picture
    10 on at
    Hello @Michael E. Gernaey 

    Is There a way that power automate can populate the column on this screenshot called Project Name?

    Like lets say I will use a column from excel to populate it?
     
    I do not know how to put a "description"? for each files that is uploaded on a folder 

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