
Announcements
I am new to creating HTML tables that can be used in a Power Automate script. I am collecting details from a list. There is the desire for the PDF I am creating using the html table to be dynamic to only include the fields that have data in them. I have created a dummy table below to show my requirements to understand my question. Any reference material or help in creating this is appreciated.
I want to vary what the PDF looks like Based upon a List field that is a boolean, so I assume I will have to have a condition to create the HTML table, but if I am able to create the html details just to not display if blank, I may not need a condition.
| HEADER SECTION | Details |
| Business Segment | There are multiple options that can be selected. Single choice. Ie: A, B, C, D |
| Subdivision | This is only required if my value is A in Business Segment. If it is blank, I don't want to include this in the header section. (Choice Selection) |
| Product Owner | This will only be filled out in specific scenarios. If it is blank, I don't want to include this in the header (Person field) |
| Date Needed By | If this is blank, I don't want this to be included in the header section. (date field) |
| TABLE SECTION | |
| When | This is a date field, if blank, I don't want to include this in the table section. |
| Justify When | This is a string field, if it is blank, I don't want to include this in the table section. |
| Why | This will always be required. No issues with populating |
| What | This will always be required. No issues with populating |
| Who | This is an optional field. If blank, I don't want to include this in the table section. This will be a string variable. |
| VP Aware | This is a boolean field. If it is false, I don't want to include this in the table section. |