Skip to main content

Notifications

Community site session details

Community site session details

Session Id : hOzPjWJ/g9V1FLZAIxJBDU
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
    4,355 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
    4,355 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,277 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
Pstork1 Profile Picture

Pstork1 20 Most Valuable Professional

#2
Gprior Profile Picture

Gprior 19

#3
stampcoin Profile Picture

stampcoin 16

Overall leaderboard