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 / HTML Table via email o...
Power Automate
Unanswered

HTML Table via email or cell values into email

(0) ShareShare
ReportReport
Posted on by

Hi, 

 

I am trying to get a flow that creates a new folder and spreadsheet each time a response in forms is submitted. I have managed to get it working so a new folder is created, named appropriately based on the input to the form and spreadsheet is created. Then I am updating certain values in the spreadsheet to Yes based on the questions - This is driving some effort calculations in the spreadsheet which are put into table 2. 

 

I am hoping to get to a point where I can send an email with the values in the table 2 spreadsheet. - Have attempted to get the list rows and put the output into a HTML table which works but it adds the odata.etag and the iteminternalid into the email (screenshot of output attached) also table isn't formatting correctly. 

 

Can anyone think of a way of removing odata.etag and itemiternalid from the email also formatting maybe via CSS? Alternatively the spreadsheet I am using is the same (just a new copy for each form) so I know which cells I need to pull into the email but can't seem to find a way of making it work (because it's a new copy of the same sheet each time created in a different folder driven by the input from the form).  

 

Thanks in advance. 

Screenshot 2024-06-23 at 17.01.45.png
Screenshot 2024-06-23 at 17.06.50.png
Screenshot 2024-06-23 at 17.18.09.png
Categories:
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @tj15 

     

    To avoid other properties like internalitem id etc, use this approach 

    Nived_Nambiar_0-1719160916974.png

     

    Select Columns dropdown as Custom and then specify the columns which you need in output html table as shown above. This will help to get remove the other non-required properties.

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • TJ-13110204-0 Profile Picture
    on at

    Hi Nived, 

     

    Thanks for your reply, would this work with a dynamic file? 

     

    I currently have the file in the create HTML Table as body/value as it's dynamic so not sure how I would add the custom column? 

     

    Screenshot 2024-06-23 at 18.25.39.png
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @tj15 

     

    what you meant by dynamic file- is it reffered ti dynamic rows/dynamic columns ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • TJ-13110204-0 Profile Picture
    on at

    Hi Nived, 

     

    So I can't select the file as it's created each time a form is submitted.

     

    In your example you have selected the file value as it's a single file, I have the file being created via share point each time so have the body/value in the from option but this means can't select the column name. 

     

    Hope this make sense. 

  • TJ-13110204-0 Profile Picture
    on at

    The other option I am thinking about is if I could set the specific cells values in the newly created spreadsheet as variables then add the content into the email. I only need to output about 6 cells into the email but struggling because I create the item earlier in the flow and want to use this flow for multiple projects. Every time they submit a form - Create Folder - Create Spreadsheet - Update rows on spreadsheet based on form items - Then get table 2 data (or the specific cells) and email that to the person who submitted the form. 

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @tj15 

     

    got it !

     

    See Instead of selecting column name as dynamic content from List rows- you can write this expression as well- item()?['column name']  see below 

    Nived_Nambiar_0-1719194771826.png

     

    This is to get tables from the file /excel file which flow have created.

    Nived_Nambiar_1-1719194827442.png

     

    Nived_Nambiar_2-1719194851727.png

     

    Expression used- 

    first(outputs('Get_tables')?['body/value'])?['id']
    Expression to get the table id 
     
    Nived_Nambiar_3-1719194902287.png

     

    Assume - i have 4 columns- A,B,C and D in excel file, but i want A and B in my html table, so you can try this expression as well to get values instead of by selecting dynamic contents

    Nived_Nambiar_4-1719195120787.png

     

    Nived_Nambiar_5-1719195143478.png

     

    to select /get values of A or B- used expression item()?['A'] or item()?['B'] - where item() represent each object under value array/dynamic content through which we are iterating.

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • TJ-13110204-0 Profile Picture
    on at

    Hi Nived, 

     

    Thanks for all your help so far ...... Struggling a little and hopeful you can point out how I am going wrong 

     

    Get tables as per below setup and using the body/ID of the spreadsheet

     

    Screenshot 2024-06-24 at 12.36.23.png

    List rows - Little confused here as I need it to always look at table 2 as that is where the data is held. 

    Have attempted to use the expression 

    Expression used- 

    first(outputs('Get_tables')?['body/value'])?['id'] but it didn't know to look at table 2. 
    Also just to confirm the file should be the body/ID of the spreadsheet that has been created by sharepoint (same as above?)

    Screenshot 2024-06-24 at 12.38.13.png

    When creating the HTML file as per the below it just puts the heading into the email and doesn't add the actual value - Should I be adding the column name to the expression item()?['A'] - Replace A with column name from the excel file?

    Screenshot 2024-06-24 at 12.33.03.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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard