Skip to main content
Community site session details

Community site session details

Session Id : oj9xSIkAlafX7pxR1oCbHE
Power Automate - Building Flows
Answered

CC Person/Email without looping

Like (1) ShareShare
ReportReport
Posted on 16 Jul 2024 12:42:13 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 16 Jul 2024 at 13:44:32
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete