So I have a SharePoint List that has a column with ID's to a sub list.
That column contains ID's to the items.
I am trying to get each of those items from the sub list, select specific columns, and create an html table. To then send an email.
I got everything working but I am wondering if I am doing this right and if its possible for me to get the multiple table names removed somehow.
Here is the entire flow and the email. As you can see the method I am using creates two tables on top of each other instead of 1 single table. I thought about using replace function to remove some of the HTML but that would also replace the first part since its the exact same.




This is how the email arrives:

I want it to look like this instead: (if possible)
