Skip to main content

Notifications

Community site session details

Community site session details

Session Id : f3INP53FqO1oXZ8RAWmbnA
Power Automate - General Discussion
Suggested answer

Combine Multiple Rows Into One Email Per Recipient: How to CC another recipient??

Like (1) ShareShare
ReportReport
Posted on 12 Apr 2025 19:55:48 by 80
I am following Power Automate and Excel: Combine Multiple Rows Into One Email Per Recipient – Ellis Karim's Blog exactly and it's working perfectly. The problem is I also need to CC a manager for each employee email sent. Example
 
EMPOYEE MANAGER
bob@bob.com tom@tom.com
bill@bill.com fred@fred.com
bill@bill.com fred@fred.com
bill@bill.com fred@fred.com
bill@bill.com fred@fred.com
nancy@nancy.com mary@mary.com
nancy@nancy.com mary@mary.com
 
In the example from the blog post, each employee in the excel only gets on email (with a list of their tasks). What I need to do is CC each employees manager as well. I've tried initialize variable, compose...nothing works. To be clear, I don't need assistance in making Power Automate and Excel: Combine Multiple Rows Into One Email Per Recipient – Ellis Karim's Blog work: it does. I'm just lost on how to modify it to include a manager CC for each employee. 
Categories:
  • Vivian Sedai Profile Picture
    2 on 13 Apr 2025 at 00:26:34
    Combine Multiple Rows Into One Email Per Recipient: How to CC another recipient??
    Hello,
    So if I get you correctly.. you want to cc each employee's manger in each mail to send to that employee. not all the mangers in copy.
  • w.p Profile Picture
    3,944 on 12 Apr 2025 at 23:16:28
    Combine Multiple Rows Into One Email Per Recipient: How to CC another recipient??
  • Suggested answer
    w.p Profile Picture
    3,944 on 12 Apr 2025 at 22:50:55
    Combine Multiple Rows Into One Email Per Recipient: How to CC another recipient??
    You add the manager here
     
    e.g manager email output
     
    To get only a single manager's email address for CC, add a compose action
     
    body('Select 2')?[0]?['MANAGER']
     
     
     
  • tpcolson Profile Picture
    80 on 12 Apr 2025 at 20:20:04
    Combine Multiple Rows Into One Email Per Recipient: How to CC another recipient??
    @Pstork1 "... just grab that value when you get the employee and add it in the email as the CC". Doesn't work. Doing so moves the email action into an apply for each and sends a single email per row, not per employee, generating thousands of emails.  The Managers are in the same spreadsheet: 
     
    EMPOYEE MANAGER
    bob@bob.com tom@tom.com
    bill@bill.com fred@fred.com
    bill@bill.com fred@fred.com
    bill@bill.com fred@fred.com
    bill@bill.com fred@fred.com
    nancy@nancy.com mary@mary.com
    nancy@nancy.com mary@mary.com
     
    The employee email is the output of a select and union in order to get one single email per employee regardless of how many rows of the same employee there are (straight from the example at Power Automate and Excel: Combine Multiple Rows Into One Email Per Recipient – Ellis Karim's Blog). 
     
  • Pstork1 Profile Picture
    66,013 Most Valuable Professional on 12 Apr 2025 at 20:12:29
    Combine Multiple Rows Into One Email Per Recipient: How to CC another recipient??
    If the manager is listed in the same table as the employee's tasks then just grab that value when you get the employee and add it in the email as the CC.  If its in another list then you will need to use the employee's email to filter the list with the managers and then grab the email from the first record returned by the filter.  I can give you an example if you specify where the managers are stored.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,013 Most Valuable Professional

Leaderboard