Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

CC Person/Email without looping

(1) ShareShare
ReportReport
Posted on by 49

I have an flow that gets items from a SharePoint list, creates HTML table and emails it. We have a column in our SP list that is a person column where Sales Person is associated to the record in the list. I want to add the Sales Person Email to the CC field in the Outlook Email V2 action which emails a single HTML table. There may be 20 records or less in the email table and need to CC any unique person/email where someone is assigned to the record. Am I able to do this without the Apply to each? I only want a single email to go out so looking for some code that can get all unique Sales Person emails in the list of records in the table and add them to the CC in the outgoing email.

 

Thanks!

 

  • Verified answer
    serviceflow2 Profile Picture
    49 on at
    Re: CC Person/Email without looping

    Resolved

    Used Select function to select the sales person email

    Then Compose with a union "union(body('Select'),body('Select'))"

    Then join function from outputs of Compose and Join with ";"

     

    Used the output of the join to get a distinct list of emails to use in the CC

     

    Reference post here:

    https://elliskarim.com/2022/10/10/how-to-remove-duplicate-email-addresses-from-a-set-of-data-using-power-automate/

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492