You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating a table as part of an email. I know PSWriteHTML has limitations when used in an email context but this sounds like something that is either already possible (and I can't figure out how to do it) or it should be something that could be added. I have a column in my data that I am using for formatting the table (using New-TableCondition) however, I don't want that column in my final output. I tried using the -ExcludeProperty option from New-HTMLTable but that does removes to column before New-TableCondition evaluates so my formatting disappears. I thought New-TableColumnOption with its -Hidden attribute might work but that only works in DT/JS and not in email.
If you're basing table condition on column you remove that's why it doesn't work and would need a code change. New-TableColumnOption -Hide mostly works with datatables and JavaScript.
This means 3 options I guess:
New-TableColumnOption -Hide enhance this to work with HTML
Inline table conditions can now use helper properties excluded from the displayed table. I merged the fix in #533, so -ExcludeProperty no longer removes the value before the condition is evaluated. The updated module has not been published yet.
The hidden helper-column fix from #533 is available in PSWriteHTML 1.45.0. Inline New-TableCondition rules can use properties omitted from the displayed table with New-HTMLTable -ExcludeProperty, so the helper value remains available for formatting without appearing in the email. Update the module and regenerate the email content.
Activity
PrzemyslawKlys commentedon Sep 24, 2025
If you're basing table condition on column you remove that's why it doesn't work and would need a code change. New-TableColumnOption -Hide mostly works with datatables and JavaScript.
This means 3 options I guess:
New-TableColumnOption -Hideenhance this to work with HTMLall of which are not done.
PrzemyslawKlys commentedon Oct 30, 2026
Inline table conditions can now use helper properties excluded from the displayed table. I merged the fix in #533, so
-ExcludePropertyno longer removes the value before the condition is evaluated. The updated module has not been published yet.PrzemyslawKlys commentedon Nov 17, 2026
The hidden helper-column fix from #533 is available in PSWriteHTML 1.45.0. Inline
New-TableConditionrules can use properties omitted from the displayed table withNew-HTMLTable -ExcludeProperty, so the helper value remains available for formatting without appearing in the email. Update the module and regenerate the email content.