Podio

Create Number of New Items from Array

To create multiple new items in a Podio app based on a specified number, they need to be dynamically generated through an automation workflow.

You can use a custom PHP script in Podio Workflow Automation to generate an array based on the input number. This array can then be used to loop through and create new items in the target app.

Example:

  • A Tax Returns app needs to create a number of ‘Return’ Items based on a “Number of Returns” field in the Contract item.
  • This script generates an array, and the PWA loop creates the specified number of tasks.
foo(); function foo() {

$number = intval(NUMBER OR NUMBER FIELD);
$array = [];

for ($i = 1; $i <= $number; $i++) {
$array[] = $i;
};

return json_encode($array);
}
<!--NeedCopy-->

New Items Array

Create Number of New Items from Array

In this article