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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / flow to combine conten...
Power Automate
Answered

flow to combine content and send email to unique users

(0) ShareShare
ReportReport
Posted on by 13

Hello, I'm trying to send a reminder email to many users.
Basically I have this output compose indicate user emails and thier project IDs.

{"Email""user1@abc",
        "ID""198"},
{"Email""user1@abc",
        "ID""203"},
{"Email""user2@abc",
        "ID""205"},
{"Email""user2@abc",
        "ID""222"},
{"Email""user3@abc",
        "ID""254"},


For example, I want to send an email to user1@abc, inform that he has ID 198 and ID 203, then send email to user2@abc that hehas ID 205 and 222, and send email to user3 that he got ID 254. 


Thank you in advance!

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    on at

    Hi , @pailin 

    According to your description, you want to filter the array and send the email to the users.

    This is my test flow you can refer to (i use the classic power automate developer page):

    vyueyunmsft_4-1706497543778.png

     

    vyueyunmsft_0-1706497340358.png

    (1)The Compose 3 action is used to create my test data:

    vyueyunmsft_1-1706497355995.png

    (2)Select action is used to extract the Email :

    vyueyunmsft_2-1706497434026.png

    (3)The Apply to each action:

    vyueyunmsft_3-1706497524644.png

    union(body('Select'),body('Select'))
    item()?['Email']
     

    . If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

  • pailin Profile Picture
    13 on at

    That's works really fine! thank you 😄
    1 more question according to this, If I have another table that indicate the name of all these project ID
    example:
    ID : Name
    198 : AAA
    203 : BBB
    205 : CCC
    How can I extract the name to send email with those ID above?

  • v-yueyun-msft Profile Picture
    on at

    Hi, @pailin

    Thanks for your response! This is my new test flow:

    vyueyunmsft_0-1706580972644.jpeg

     

    (1)Compose 3 and Compose 4 are used to create test data:

    vyueyunmsft_1-1706580972648.jpeg

     

    (2)The initialize variable action:

    vyueyunmsft_2-1706580972649.jpeg

     

    (3)The "Apply to each 3 " action:

    vyueyunmsft_3-1706580972654.jpeg

     

    item()?['ID']

    items('Apply_to_each_3')?['ID']

    json( concat( '[' , string( items('Apply_to_each_3') ) , ']' ) )

    item()?['Email']

    body('Filter_array_2')?[0]?['Name']

    body('Select_2')?[0]

     

    (4) The Select action is the same as above:

    vyueyunmsft_4-1706580972656.jpeg

     

    (5)The "Apply to each 2" action:

    vyueyunmsft_5-1706580972658.jpeg

     

    union(body('Select'),body('Select'))

     

    You may need to replace your action name in your side.

     

     

    Best Regards,

    Yueyun Zhang

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard