Hello,
I’m trying to print an HTML table using a loop for each but I’m facing issue it’s only print the last item in the table How I can solve it?
please check the screenshoots:







Output:

Hello,
I’m trying to print an HTML table using a loop for each but I’m facing issue it’s only print the last item in the table How I can solve it?
please check the screenshoots:
Output:
Best answer by SimonMuntz
Hi
I hope you are doing well.
Firstly, create a variable and store your header information.
I have called mine TableOut.
<tr>
<th style="border: 1px solid black;">Brand</th>
<th style="border: 1px solid black;">Material</th>
<th style="border: 1px solid black;">Item</th>
<th style="border: 1px solid black;">Branch</th>
</tr>
Loop through your data, and with each iteration add it to the TableOut variable like so:
Once you have constructed your inner table data, surround it with your table tags.
You will end up with something like this:
I have attached an example workflow for you.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.