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 / Sending email to uniqu...
Power Automate
Answered

Sending email to unique list of Managers with the list of their users

(0) ShareShare
ReportReport
Posted on by 26

Hi,

 

I'm fetching data from excel where I have to pick the unique manager names and their email addresses and send an email to all the Managers with the list of the users reporting to them who have not completed the online training. The Manager should receive one email with the complete list of users and I have to dynamically set/pickup the Manager name in the email body. 

 

The dataset looks like below:

 

NameManagerEmailVideo
User 1Markdummy@example.comModule 2
User 2Rileyabc@hotmail.comModule 2
User 3Tonyxyz@gmail.comModule 2
User 7Rileyabc@hotmail.comModule 2
User 4Tomjjj@abc.comModule 2
User 5Markdummy@example.comModule 2
User 6Markdummy@example.comModule 2

 

With reference to the above dataset, Mark should receive one email with the list of three users (User 1, User 5, User 6) 

 

The body of the email

 

Hi [Manager],

 

The following people have failed to attend the [Video] training:

Categories:
I have the same question (0)
  • Rahber Profile Picture
    1,935 on at

    Hi ,

    You can use the following article as starting point https://powerusers.microsoft.com/t5/General-Power-Automate/Read-rows-Excel-and-send-mail/td-p/45195

     

    and this

    https://powerusers.microsoft.com/t5/Building-Flows/Consolidated-email-based-on-date-in-excel/m-p/471936/highlight/false#M57275

     

    Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

    Thanks,
    Rahber

  • Kashif_ptcl Profile Picture
    26 on at

    Hi Rahber,

     

    Thanks for your reply. I already know and have read both the articles, in fact, I have built the flow which is working perfectly fine, it's reading the data from excel, filtering the records from excel based on criteria and I'm also able to filter the unique values from a particular field and successfully sending the emails. The only challenge I'm facing is not able to get the Manager's name(one of the fields in excel) dynamically in the email body. 

  • faustocapellanj Profile Picture
    1,662 on at

    Hi @Kashif_ptcl 

    Can you please post screenshots of your flow to see what you have done so far?

    Thanks.

  • Kashif_ptcl Profile Picture
    26 on at

    Please see attached the screen shots, the workflow is running fine except from pulling the Manager Name dynamically in the email 

    body. 1_LI.jpg2.PNG3.PNG4.PNG5.PNG6.PNG

  • faustocapellanj Profile Picture
    1,662 on at

    Hi @Kashif_ptcl 

    I have attached a file with a flow I created around your requirements. There are a few things you need to change, such as column names to match the columns in your Excel file. I tried to create an Excel file with the same columns you have, but the Excel screenshot didn't seem to show all the columns your file has. Please import it in your tenant, make the necessary changes to match your side and test it. Once done, please let me know if it worked.

    Regards,

  • Kashif_ptcl Profile Picture
    26 on at

    Thanks .

     

    Yes I will definitely have a look and implement it by changing the column names. 

  • Kashif_ptcl Profile Picture
    26 on at

    Hi 

     

    I have been trying to import the flow package under the solutions import but I'm getting the below error.

     

    import error.PNG 

  • Kashif_ptcl Profile Picture
    26 on at

    Hi 

     

    Moreover, I have also tried importing the package file under the My flows Import. The package gets uploaded but the Import button is not enabled. See below. 

    import error - 1.PNG

  • faustocapellanj Profile Picture
    1,662 on at

    Hi @Kashif_ptcl 

    You have to click the Action button for each of the 3 resources listed and set up the respective connection for each one.

  • Kashif_ptcl Profile Picture
    26 on at

    Thanks Fausto.

     

    I'm getting the below error while imprintingimport error - 2.PNG.

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard