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 / Create HTML and format...
Power Automate
Answered

Create HTML and format the table in an email

(0) ShareShare
ReportReport
Posted on by 64

I created a successful flow that reads data from an excel worksheet, creates an HTML table and outputs it into an email with options for the user. Everything is great except the html table comes out ugly and unformatted. The data is there but their are two columns that doesn't come from my data. Also, one of my columns is a date of birth field and the date comes out as a number instead of a date format.

 

Is there anyway to get rid of the columns that don't belong and format my date of birth column?

 

Please HELP!

snip.pngsnip1.pngsnip2.pngsnip4.pngsnip5.pngsnip6.pngsnip7.pngsnip8.pngsnip9.png

Categories:
  • Verified answer
    v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @ ersula82,

     

    I have made a test on my side, the date comes out as a number instead of a date format is confirmed on my side.

     

    If you would like the the date comes out as a date format instead of a number,I afraid that there is no way to achieve your needs in Microsoft Flow currently.

     

    If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

     

     

    In addition if you would like the Html table only have columns that you want, you could add a "select" action before the "Create html table" action to achieve your needs.

    You could refer to screenshot below to create the flow:

    Capture.PNG

     

     

    Note:

    You could add the expression of columns you need in the "Select".

     

    The expression of the Student Number in "Select" as below:

    item()?['Student Number']
     

    The expression of the Last Name in "Select" as below:

    item()?['Last Name']

     

    The expression of the First Name in "Select" as below:

    item()?['First Name']
     

    The expression of the DOB in "Select" as below:

    item()?['DOB']

     

     

    The flow would run successfully as below to create the html table with columns you need:

    Capture.PNG

     

     

    Please let me know if your problem could be solved.

     

    Regards,
    Alice Zhang

  • ersula82 Profile Picture
    64 on at

    This worked! Thank you very much!

  • HarshavardhanG Profile Picture
    49 on at

    I have tried all the above solutions, but can't seem to get it working.

    I have raised a new post here: https://powerusers.microsoft.com/t5/Building-Flows/Format-timestamp-from-Excel-Online-to-send-mails/m-p/746522 

     

    Can someone please guide me?

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 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard