Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Sending consolidated emails from excel (TO & CC)

(0) ShareShare
ReportReport
Posted on by 29

Hi,

 

I am trying to build a flow that selects all rows in an Excel table relating to one To email address, then sends one consolidated  email to the recipient. I also need to include a CC field.

 

I'm very new to flows but have managed to compile the below based on what I've found online - it works perfectly to group the rows and sends only one email, however the CC field is duplicated many times in the output (once per row of data that the CC email is included on).

 

to: email correct

cc: email; email; email; (same email for every row)

 

I have tried using the Union expression to bring only one CC value forward, however as I am already using this for the To email, it throws up an error. 

 

Does anyone know how I can correct my flow?

 

hk4_0-1600316897204.png

hk4_1-1600316923754.png

 

hk4_2-1600316958918.png

hk4_3-1600316982060.png

hk4_4-1600317019232.png

 

 

Thanks

 

  • manuelatarabuta Profile Picture
    27 on at
    Re: Sending consolidated emails from excel (TO & CC)

    Hi @efialttes ,

     

    I'm trying to do a very similar workflow, only difference would be that I want to send a single email to each TO group and CC'ing a single time the manager. I used the steps described above and I got the error which can be seen in picture. I don't want to have the "apply to each" row in my excel file, but consolidated per responsible person in the TO field. 

     

    I did posted a query as well on community and didn't got a response yet, wondered if you could help would be really much appreciated.

    error.JPGUntitled.jpg2.jpg

    Can you please advise where to correct?

    Many thanks,

    Manuela

  • hk4 Profile Picture
    29 on at
    Re: Sending consolidated emails from excel (TO & CC)

    Thank you so much!

  • Verified answer
    efialttes Profile Picture
    14,756 on at
    Re: Sending consolidated emails from excel (TO & CC)

    Hi!

    I would suggest the following:

    make CC variable of type array.

    Now, inside the true branch condition of 'Apply to each 3' add an 'Append to Array' action block, name 'CC', value CC excel column

    Finally, let's focus on 'Send an email' action block, I guess you can assign the following expression as the value for to 'CC' input:

     

    join(union(variables('CC'),variables('CC')),';')

     

    Just after 'Send an email' remember to reset 'CC' variable value, so it starts as an empty array for the next iteration

     

    Hope this helps

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1