Back to Help Index

Continue on with Actions

Use </> Continue to stop a For Each loop here and continue one with the current Item actions.
Actions placed after the Continue step are executed once only.


For example, we can create a custom table using a loop to filter the referenced results to create a PDF invoice.

The Podio Workspace is set up as follows:

  • Work Order items (App B) referenced a Client item (App A)
  • Time Sheet items (App C) reference the Work Order item (App B)
  • Invoice item (App D) references the Work item (App B)

When a Work Order is set to Complete it creates an Invoice Item. The flow to create the PDF Invoice is set up as follows:

  1. Start your flow to Trigger on Item Created from Invoices (App D).

  2. Add Get Referenced Item and set up to follow to Work Orders (App B) and then to Time Sheets (App C).

  3. Add another Get Referenced Item and set up to follow to Clients (App A).

  4. Add the Sort Collected to sort the collected Time Sheets by Date Ascending.

  5. Add a Custom Variable/Calc and create a PHP expression to start a detail table.
    Note that any table formatting must be done here

    This Calculation creates a Table Heading with three (3) columns - "Date", "Summary" & "Duration". We have also added CSS to give the table borders and span the width of the page.

  6. Add the For Each and set to the referenced items collected to use in the Table.

    This is set up "for each" referenced Time Sheet.

  7. Add a Sanity Check to check IF the referenced Time Sheet status is "Ready to Bill".

  8. Add another Custom Variable/Calc action brick. Title this Variable the same as the table created above. Create a PHP expression to add the data from the Time Sheet to the table variable created above.
    Note that Formatting can be added to each column to format the data output.

    Here we have formatted the date to output as numbers in the m-d-Y format and the duration to be a whole number to 2 decimal spaces.

  9. Add an Update Collected action to Update the Item added to the detail table.

    This step will change the Time Sheet from "Ready to Bill" to "Invoiced"

  10. Add the End IF to close the Sanity Check.

  11. Now add the </> Continue action to stop the loop and continue on with the actions.

  12. Add another Custom Variable/Calc to close the table.

  13. Add Make a PDF. Be sure to add the Custom Variable you created in the PDF body.

The final PDF is shown below. See Advanced Formating for more customization.


Back to Help Index