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 extract data from t...
Power Automate
Answered

TO extract data from table and paste it outlook email and send it out

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi team I need to extract data from my excel table and paste it in outlook email in same format and send it out.

Below is the data needed to be extracted.

 

Navjazz_0-1662663284853.png

 

In below format needs to be pasted in outlook and send out.

Navjazz_1-1662663284861.png

 

 Pls help asap, @ADCommunity  @Commodus @community24    @ScottShearer @Anonymous 

              @CommunitySynd @Anonymous 

Categories:
  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    Use list the excel table row and covert to html table then send an email. Here is the flow:

     

    Temp Emp Table:

    Kaif_Siddique_1-1662669341934.png

     

    Flow:

    Kaif_Siddique_0-1662669301651.png

    Kaif_Siddique_5-1662670125742.png

     

    Kaif_Siddique_4-1662669842927.png

     

    Style: 

    <style>
    table {
    border-collapse: collapse;
    width: 100%;
    }

    th, td {
    text-align: left;
    padding: 8px;
    }

    tr:nth-child(even){background-color: #D9E1F2}

    th {
    background-color: #4472C4;
    color: white;
    }
    td, th {
    border: 1px solid #AAAAAA;
    padding: 2px;
    }
    </style>

     

     

    If you like my response, please give it a Thumbs Up.
    If this helps, please Accept as solution.


    Regards
    Kaif

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Kaif_Siddique 

    Thanks for your help it worked. Really appreciated.

  • Verified answer
    Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    If I have solved your query, please mark my post as Solved. Thank you

     

    Regards

    Kaif

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Kaif_Siddique 

    when I am listing the excel table row and covert to html table then sending an email, the date time format is getting changed pls suggest on that attaching the pics below:

     

    In excel it is like this

    Navjazz_1-1663011287448.png

     

    But it email it is coming in this format. Pls look the format and kindly ignore the values as both excel data & email data are of different dates.

     

     

    Navjazz_0-1663011209547.png

    pls help. 

     @ADCommunity  @Commodus @community24    @ScottShearer @Eduardoosorio23 

                  @CommunitySynd @hwu @Kaif_Siddique 

     

     

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Format value to Datetime.

     

    Sample Flow:

    Kaif_Siddique_0-1663092930474.png

     

    Update your flow and use below expression(pass Start Time value)

    formatDateTime(addseconds('1899-12-30',int(formatnumber(mul(float(44813.1673611111),86400),'0'))),'dd-MM-yyyy hh:mm')

     

    Kaif_Siddique_1-1663093187995.png

     

    Regards

    Kaif

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Kaif_Siddique 

     

    I have to pass the Start time column and End time column from excel to format date time.

    I wrote this query

    formatDateTime(addseconds('1899-12-30',int(formatnumber(mul(float(item()?['Start Time']),86400),'0'))),'dd-MM-yyyy hh:mm')
     
    But it's returning error, how to pass start time and end time value I am unable to understand.
     
    Navjazz_0-1663107325938.png

    formatDateTime(addseconds('1899-12-30',int(formatnumber(mul(float(item()?['Start Time']),86400),'0'))),'dd-MM-yyyy hh:mm')

     

    Navjazz_1-1663107394534.png

    In start time putting the O/P of compose 2

     

    Navjazz_2-1663107454284.png

    pls help @Kaif_Siddique  how to do that. 

     @ADCommunity  @Commodus @community24    @ScottShearer @Eduardoosorio23 

                  @CommunitySynd @hwu @Kaif_Siddique 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The error I am getting

     

    Navjazz_3-1663107634701.png

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Kaif_Siddique 

    It's working for me now with this query

     

    addseconds('1899-12-30', int(formatNumber(mul(float(item()?['Start Time']),86400),'0','en-us')),'yyyy-MM-dd HH:mm:ss')

     

     

    Thanks for your support

     

     

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    Try this

    Kaif_Siddique_1-1663175248589.png

     

     

    formatDateTime(addseconds('1899-12-30',int(formatnumber(mul(float(item()['StartTime']),86400),'0'))),'dd-MM-yyyy hh:mm')

     

    Regards

    Kaif

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Kaif_Siddique 

    Thanks that problem is sorted.

     

    But here in Time taken column I am getting the O/P as  56.233333327 like this, how can I reduce it to 2 decimal places or no decimal place. Just ignore the values after decimal.

    Navjazz_0-1663191474846.png

    Like below u can see in excel under time taken column value is 56 only. 

    Navjazz_1-1663191763194.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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard