web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / CC Person/Email withou...
Power Automate
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!

 

Categories:
I have the same question (0)
  • Verified answer
    serviceflow2 Profile Picture
    49 on at

    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard