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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Power Automate Flow to send single email with respective rows related to user

(0) ShareShare
ReportReport
Posted on by 32

Hi,

 

Requirement is to send single email to employee with his respective rows and CC to his respective Manager.

 

Data from sharepoint list

DOC_IDInvoice_NumEmployee EmailManager Email
AB12X12SUM11email22email
SD12Z1qwe212email33email
asdasasadsd11email22email
SD12Zw1qwe2w 11email22email

 

Expectation:

Employee 1:

DOC_IDInvoice_NumEmployee EmailManager Email
AB12X12SUM11email22email
asdasasadsd11email22email
SD12Zw1qwe2w 11email22email

 

 

 

Employee 2: 

 

DOC_IDInvoice_NumEmployee EmailManager Email
SD12Z1qwe212email33email

 

I have tried with initializing array and append to array but missing something.

 

Thanks in Advance.

I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Power Automate Flow to send single email with respective rows related to user

    Hi @rpskt :

    Please try this flow:

    1\My Data Source is a Excel table

    2.JPG

    2\My flow

    1.JPG

    Reference Expression:
    1\

    union(body('Select'),body('Select'))
    2\
    items('Apply_to_each')['Employee']
    3\
    items('Apply_to_each')['Employee']
    4\
    body('Filter_array')[0]['Manager Email']
    Best Regards,
    Bof
  • rpskt Profile Picture
    32 on at
    Re: Power Automate Flow to send single email with respective rows related to user

    Hi @v-bofeng-msft 

     

    This looks like working when manager email in cc not added. 

    The requirement is to CC manager email in the single to each employee.

    Thanks in advance

  • v-bofeng-msft Profile Picture
    on at
    Re: Power Automate Flow to send single email with respective rows related to user

    Hi @rpskt :

    Sorry, expression 4 should be placed under the CC parameter:

    body('Filter_array')[0]['Manager Email']

    1.JPG

    Best Regards,

    Bof

     

  • rpskt Profile Picture
    32 on at
    Re: Power Automate Flow to send single email with respective rows related to user

    Hi @v-bofeng-msft 

    Then, 4 emails are being received.

     

    Just tried this and works.

    rpskt_0-1609491924386.png

    Is it possible to create HTML table customized with table lines?

  • v-bofeng-msft Profile Picture
    on at
    Re: Power Automate Flow to send single email with respective rows related to user

    Hi @rpskt :

    Custom html table is possible.I recommend two methods:

    Method1:Customize column in create html action

    1.JPG

    Method2:First use Select action to get the custom table you want, and then use create html action to automatically generate html table.

    Best Regards,

    Bof

  • rpskt Profile Picture
    32 on at
    Re: Power Automate Flow to send single email with respective rows related to user

    Thanks @v-bofeng-msft 

    Can we add the same row data per user as an attachment to the email. Please to help.

     

    Thanks

  • ak121 Profile Picture
    17 on at
    Re: Power Automate Flow to send single email with respective rows related to user

    If a cell contains multiple emails, how can an email be sent separately to each individual?

    ID Name  email

    1    aa        email1@abc.ocm; email2@abc.com

    2     bb       email2@abc.com

    3    cc         email3@abc.ocm

    output 

    to email1@abc.com  - 1 aa

    to email2@abc.on   1 aa

                                     2 bb

    to email3@abc.com 3 cc

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard