Podio

Creating a Dynamic Table with PHP in Podio Workflow Automation

Sometimes the HTML Detail table action isn’t robust enough, but we can generate a dynamic HTML table listing tasks for example, with data pulled from Podio fields, and display it (e.g., in an email or report).

Example:

We want the table with columns for Name, Type, Project, Status, Owner, and Due Date.

Var table

<table class="pdfdetailtable" border="1" cellspacing="1" cellpadding="2" width="100%">
<tr>
<th width="20%">Name</th>
<th width="12%">Type</th>
<th width="30%">Project</th>
<th width="15%">Status</th>
<th width="15%">Owner</th>
<th width="15%">Due Date</th>
</tr>
<!--NeedCopy-->

We want to loop over each task and add it to the table.

[[Variable.table]]
<tr>
<td><a href="[[Ref Task URL Link to Item]]">[[Ref Task Task Name]]</a></td>
<td>[[Ref Task Task Type]]</td>
<td>[[Ref Task Related Project]]</td>
<td>[[Ref Task Task Status]]</td>
<td>[[Ref Task Task Owner]]</td>
<td>[[Variable.dueDate]]</td>
</tr>
<!--NeedCopy-->

Var Table

Creating a Dynamic Table with PHP in Podio Workflow Automation