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 / To send Email with req...
Power Automate
Answered

To send Email with required data in HTML table to respective users

(0) ShareShare
ReportReport
Posted on by 43

Hi All, 

Very Good evening to all. Hope all are doing good. I need your help in one of the requirements. I have a table with some information with users Email.  I need to send the mail and respective user can see their data in HTML table. for ex:-

User Name   Employee Id  Rank     Work TimeUser Email Id   

Jyothi51915301E2.23.63madathala.nagar@hcl.com
Sagar Sahoo51515486E2.26.34sagarhemaranjan.s@hcl.com
Pitchumani Varathara51303704E2.27.72pitchumani.v@hcl.com
Chidanand Bangalore 40108804E46.63chidanand.kb@hcl.com
Venkata Prasad51832483E56.62venkataprasad@hcl.com
Gopal A40131208E46.62gopala@hcl.com

 

In the above example I need to send the communication to those users who are having Work Time column is less than 7 and Rank is less than E4 with their respective data. Like for the first user i need to send the Email with table having her information only. Not all other users information.

User Name   Employee Id  Rank     Work TimeUser Email Id   

Jyothi51915301E2.23.63madathala.nagar@hcl.com

Any help in this will be highly appreciated.

 

I tried a bit but it is sending all the information available in the table . The result is coming like below.

Hi Sagar Sahoo,
Your Work Time recorded by Nippon is low as per Nippon Standard. Please improve it.

UserName

EmployeeID

WorkTime

Jyothi

51915301

3.63

Sagar Sahoo

51515486

6.34

Pitchumani Varathara

51303704

7.72

Chidanand Bangalore

40108804

6.63

Venkata Prasad

51832483

6.62

Gopal A

40131208

6.62



But expectation is only i can see my data not all others data to be displayed. 

Here is what i have done into it. Please help how can i achieve this.

 

sagarbtech008_0-1691754639258.png

Further expanding the Style to initialize Variable and Sending mail.

sagarbtech008_1-1691754728289.pngsagarbtech008_2-1691754764994.pngsagarbtech008_3-1691754785201.png

 

Regards,

Sagar

 

 

Categories:
I have the same question (0)
  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @sagarbtech008  ,

     

    I think currently you are sending the complete HTML data to all users. You should use a filter array action to filter the data based on the mail id of the user and then send the email.

     

    Please check the screenshots of the flow , that I have built.

     

    Screenshot 1.pngScreenshot 2.png

     

    Please ignore compose 4. 

     

    I am using the array created at the beginning to check if the current Rank exists in that or not. If it exists , then the condition would be false.

    Below expressions are used in the first condition.

     

    float(items('Apply_to_each')?['Hours'])
    float('7.00')

     

     

    To get the email in the filter array expression on the left below expression.

     

    item()?['Email']

     

    The body of filter array should be used as a input for the create html table action.

     

     

    For rank you can split the string that you are reading from excel and compare the value if its less than 4 or not.

    Hope this helps!

     

    If this solves your problem , do give this answer a thumbs up please mark this as a solution.

     

    Thanks,

  • sagarbtech008 Profile Picture
    43 on at

    Hi @SanmeshG ,

    Thanks a lot for your quick support. I am almost there. but the result is showing like this below. Repetition of same information is coming. If you look at the result, same value is repeated for 6 times. Please help in fixing this.

    UserName

    EmployeeID

    WorkTime

    Sagar Sahoo

    51515486

    6.34

    Sagar Sahoo

    51515486

    6.34

    Sagar Sahoo

    51515486

    6.34

    Sagar Sahoo

    51515486

    6.34

    Sagar Sahoo

    51515486

    6.34

    Sagar Sahoo

    51515486

    6.34

     

    Regards,

    Sagar 

  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @sagarbtech008  ,

     

    Can you share screenshots of your flow.

     

    From filter array you should get only one row.

  • sagarbtech008 Profile Picture
    43 on at

    Hi @SanmeshG ,

    Please find the screenshot of Entire flow below.

    sagarbtech008_0-1691772063459.pngsagarbtech008_1-1691772173627.pngsagarbtech008_2-1691772231577.pngsagarbtech008_3-1691772262989.png

     

    Regards,

    Sagar

  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @sagarbtech008  ,

     

    Got it ,

    1. While creating an html table you should use the output that you receive from filter array action not the value array that you get from list rows present in a table.

     

    2. Also can you check the length of your filter array using the length function and see how many records are returned. And you can cross check if you get the same number of rows in your data source for that mail id.

     

    Hope this solves your issue.  Please give this a thumbs up and mark this as a solution if this helps.

     

    Thanks,

    Sanmesh

     

    This should

  • sagarbtech008 Profile Picture
    43 on at

    Hi @SanmeshG ,

    In Filter Array i think it is not giving correct result. Hence the outcome is not coming right. i am not sure where and what i am missing here to add. Please see the Flow Result while testing. I am pasting from Filter Array. Because the problem seems to start here. And Output is showing nothing .

     

    sagarbtech008_0-1691839377281.pngsagarbtech008_1-1691839405752.pngsagarbtech008_2-1691839430688.pngsagarbtech008_3-1691839449988.png

    The above are test result. And my flow after small correction what you suggested, but it is not coming correctly.

     

    sagarbtech008_4-1691839549879.pngsagarbtech008_5-1691839580086.png

     

    Please let me know if i am doing something wrong here. Help me to correct it. Thanks a lot for your continue support.

     

    Regards,

    Sagar

     

  • Verified answer
    SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @sagarbtech008  ,

     

    Are you sure that you are passing the correct email ID while filtering?

     

    For testing purpose remove the expression and hardcode a single email and see if the data is filtered correctly or not. 

     

    After that filter array returns records when you hard code the value , you can try to add the correct expression in the filter.

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard